The higher energy levels of the two atoms are different.
Work Step by Step
The nuclei of hydrogen and helium are different, so interactions with their electrons will differ, resulting in different energy levels. Also, in helium, the second electron interacts with the first, affecting their energy levels. When the energy levels are different, the energy differences between levels also changes, and the spectra differ.