In atoms with multiple electrons the energy of an electron depends not only on the intrinsic properties of its orbitals, but also on its interactions with the other electrons. These interactions depend on the detail of its spatial probability distribution, and so the energy of orbitals depends not only on n but also on l