There is bacteria growing in the tank. You can pump a small amount of bleach in it and let it sit a little then flush it out.
Temporary fix if it's in the water.The whole system may need to be flushed also.
But best bet would be to get the water analyzed.
Oh and it is not a HOT water heater, it's a water heater.