Galvanised zinc rusts itself away to save the steel
Scratch a galvanised bucket down to bare steel and it still won't rust there — the zinc coating sacrifices itself for the metal underneath. Zinc is more chemically reactive than iron, so when moisture bridges a scratch the surrounding zinc corrodes first and the exposed steel is spared, even across a bare gap up to about six millimetres wide. The coating slowly surrenders its own atoms so the structure it guards stays sound. Engineers call it sacrificial, or cathodic, protection.