Atomic number of hydrogen is 1.
So, a hydrogen atom has only one electron in the valence shell. Elements belonging to group 1 have 1 valence electron.
Elements having only 1 shell belong to the first period.
Therefore, Hydrogen belongs to the first group and first period of the periodic table