The first image on the left is a gas storage hot water heater
Anodes

Sacrificial Anodes are used to prolong the life of your hot water heater
The second image is an anode completely spent