Energy of an electron in a multielectron atom, unlike that of the hydrogen atom, depends not only on its principal quantum number (shell), but also on its azimuthal quantum number (subshell).
That is, for a given principal quantum number, subshells s, p, d, f ... all have different energies. The main reason for having different energies of the subshells is the mutual repulsion among the electrons in a multi-electron atoms.
Thus, It may be noted that different subshells of a particular shell have different energies in case of multi–electrons atoms. However, in hydrogen atom, these have the same energy.