Nails attract rust particles from the air
The iron in the nail becomes another element
Iron reacts with oxygen and moisture in the air to become rust
A decrease in temperature causes rust to form