It may surprise you that the International Space Station in space will also rust. We know that rust is the result of oxidation of oxygen in the metal and air. There is no air in space, there is no oxygen, it should not rust.
However, there is still air at a height of 700 kilometers from the surface, and the international space station is 400 kilometers away from the surface.
The oxygen in the air does not exist as a diatomic molecule at such a height, but a more active single atom.
Aluminum and stainless steel form an oxidized protective layer so they do not rust, but silver and iron still rust.