Dear student,
Iron is placed above Copper in the metal activity series.
The elements present above can replace elements present below from their compounds. When copper sulphate is placed in iron pot, iron replaces copper from copper sulphate to form ferrous sulphate. As iron reacts this result in holes in iron pot.
CuSO4 + Fe → FeSO4 + Cu.
Regards.