When an electron moves from an excited state, kinetic energy of the electron
is high, to the ground state, kinetic energy of the electron is low, the electron
releases energy as it moves to the lower energy level. It releases some of the
energy it contains in order to match other electrons in that level.