Nitrogen reacts with oxygen at extreme temperatures (around 2000oC) forming Nitric oxide NO. Why are such high temperatures required?
Due to a strong bond between the atoms of nitrogen.
The triple bond between the nitrogen atoms is very strong. So, it requires high temperatures to break the bond. Hence, N2 is considered inert in most circumstances.
Oxygen reacts at room temperature, and it is not inert.