Corroded water heater terminal

Hi
What might cause one of the water heater terminals to corrode?

Danielle, most likely a present or past leak onto or near the electrical terminals.
In my area I have also seen them corrode if the tank is near a chlorination injector pump.

Thanks for the input!