Dear student,
Copper metal is reddish-brown in color and when burnt it air, it turns black due to the formation of copper oxide. When hydrogen gas is passed over this CuO, reverse reaction takes place and copper is obtained back.
CuO + H2 → Cu + H2O
Thus, the brown color of the metal is restored due to the reduction of CuO. Thus, hydrogen is acting as a reducing agent here. Hydrogen itself gets oxidized from 0 oxidation state in H2 to +1 oxidation state in water. It is getting oxidized and reducing copper oxide.
Regards