Why nitric acid is not used is not used for the preparation of hydrogen gas?
Because it is a strong oxidizing agent.
Nitric Acid is a very strong oxidising agent. It oxidizes the dihydrogen gas produced during the reaction with metals to Water. That is why, Nitric Acid cannot be used for preparation of hydrogen gas.