I think the most common reason that happens is mouse nests.
When you repair it, provide a path out of there for the condensation or it will eventually happen again. Rust happens where water pools, either through poor drainage or a mouse nest holding the water against the metal.