Remember this, "OIL RIG - Oxidation Involves Losing, Reduction Involves Gaining."
In both of these equations, the product loses in its oxidation state.
So, OIL RIG, Oxidation involves losing.
They are both oxidation - you just had it backwards for the oxidation states.
Hope this helps,
The Cancer Curer