The top of a heater is where the water enters, leaves and relieves. In this valley it is also where winter damage announces itself, because standing water in a short fitting has nowhere to go when the temperature drops.
Three separate problems, one location
A split from ice. A nipple, a union tail or a short run above the tank holds water after a draw. A hard freeze expands it and cracks the metal. The leak lands on top of the unit and runs down, which is why it is routinely mistaken for a tank failure.
A joint that has given up. Unions and dielectric connections weaken with age. The local supply is low in dissolved solids — around 256 ppm — and reported non-corrosive, so this is slower than in hard water, but it still happens.
Pressure. A weep that appears only while the unit is heating is thermal expansion finding the weakest point. The relief valve often does the same thing at the same time.
Reading the evidence
Where on the top the water appears narrows it: a nipple or union points at a joint; the relief discharge points at pressure; the flue collar points at venting.
When it appears matters too. Constant at rest means a split or a failed joint; only during a heating cycle means expansion.
The repair
Isolate, dry, confirm the source, and replace the failed fitting. Then run a heat cycle, because a leak that only appears under pressure cannot be tested cold.
After the second time
If the same fitting has split before, the fix is exposure rather than another fitting. Insulate the run, keep it inside the warm envelope where possible, and leave no water standing in a dead leg over winter.
What to have ready
Where the water appears, whether it followed a freeze, whether it only happens during heating, and whether the space is heated.