Elements have different oxidation states due to their ability to lose or gain different numbers of electrons. This variability depends on the element’s electron configuration and its position in the periodic table.