Tin is a non-reactive metal whereas iron is a reactive metal.
If food is stored in an iron container, it might react with iron and get spoiled.
Hence, tin is electroplated on iron to make cans used for storing food.
Electroplating tin makes the container non-reactive and look better.