When oxygen reacts with metal then it from following types of oxides.
(i) M2O
(ii) MO
(iii) MO2
The formation of these oxides involves the following steps.

We know that the value of ∆iH2 is much higher than the value of ∆iH1 and the value of ∆egH2 is positive as compared to AegH, but when MO and MO2 compounds are formed then the lattice energy released, in case of MO it is very much higher than the lattice energy released during the formation of MO2. It is due to the presence of higher charge on both ions in case of MO. Hence the formation of MO is thermodynamically favourable. Due to above reason a large number of oxides having O2- species are formed.