NEMA 3R and 4 inverters and outdoor cabinets may be rated for outdoor use, but any scratches in the paint will expose the metal to rusting. Once the rust gets a foothold, it will quickly spread. In this case, the corrosion should be sanded, primed, and painted.