Rusted circuit components of the lights

The lights worked well before, recently 2 lights started to blinking, they can not stay on. Then I opened the lights cover to check if there is any issue, oh, the circuit components was rusted. I do not know how this part will rust, I do not understand.

###

