When nitric acid HNO3 reacts with metals, hydrogen gas is not observed because
Hydrogen is oxidised by nitric acid.
Most of the metals do not react with HNO3 because it is a strong oxidizing agent. And since hydrogen is a reducing agent, nitric acid oxidises the hydrogen produced to water and itself undergoes reduction to give N2O,NO,NO2,N2 and NH3. Hence, when metals (except Mn and Mg) are treated with nitric acid, hydrogen gas is not liberated.