Answer:
To keep iron goods from rusting, they are painted with a protective coating. When a metal surface is left unpainted, it comes into contact with the oxygen in the air and, in the presence of moisture, it comes into contact with Iron(III) oxide. However, if the surface is painted, it will not come into touch with moisture or air, which will prevent rusting.