This is true as Zinc has less reactive compared to Hydrogen.
Hydrogen attracts oxygen more than Zn as Zinc is bigger in size and is more loosely bound to the oxygen atoms.
Below is the reaction demonstrating the same-
Zn O2 + 2 H2 => Zn + 2 H2 O