Nitrogen is an inert gas, that means that it does not support oxidation.
Rust is a form of oxidation. Water contains ionicaly charged oxygen ions
wich accelerate this in many metals. If you would like to keep something new
for a long time put it in a container, vacum out all atmopheric air...