The transition metals have their valence electrons in (n-1)d and ns orbitals. Since there is very small energy difference between (n-1)d and ns-orbitals, both energy levels can be used for bond formation.
Thus, transition elements exhibit variable oxidation states.