One important property of metals is the propensity to lose electrons and become positively charged. Hydrogen often will lose electrons to form a positively charged ion (a proton)*. Of course, hydrogen can also gain an electron (like a nonmetal) to form a hydride ion.
* the true story is a little bit more complicated since hydrogen doesn't really form free protons in water, it forms hydronium ions.