The emission line spectrum of atomic hydrogen arises from the energies given out when
Electrons move to energy levels closer to the nuclei.
When electrons jump back from higher energy levels to lower energy levels closer to nucleus, difference of energy between the two energy levels is liberated in form of electromagnetic radiation.