For transition metals, electrons often move from lower orbitals to higher orbitals to have have filled sub-shells.
This is also an explanation for a few of the oxidation states.
Having half filled or completely filled sub-shells make the metals more stable.