Hydrogen has 1 electron
It can either lose it or gain another electron to reach duplex state
It has the properties of cations as well as anions hence it can come under Alkali metals and Halogens
So we put it on both sides as we don't know where to put it The IPUAC is deciding on where to put it