Zinc is coated over iron to prevent iron from corrosion. The coating of zinc stops oxygen and water to reach the layer of iron metal.
Also, since zinc is more reactive than iron, therefore it reacts with surroundings and hence prevents iron from depletion.
Regards