Can anyone tell me why a hydrogen atom has so many spectral lines even though it has only one electron? Also how would I explain this using a diagram?

There are many unfilled energy levels above ground. Excited electrons can move betwixt those levels on the way to ground.

It has so many energy levels where it can absorb or emit photons.