# Going from La to Ce, why is the extra electron added into the 4f orbital?

So, I am studying electronic configuration but the elements of the series of the lanthanides confused me. The electronic configuration of $\ce{La}$ is $\mathrm{6s^2\,5d^1}$ and that of cerium is $\mathrm{6s^2\,5d^1\,4f^1}$.

So, why does the extra electron that was added make the $\mathrm{5d}$ orbital have a higher energy?