This is because hafnium is a transition metal located in group 4 of the periodic table, and elements in this group tend to lose four electrons to achieve a stable electron configuration.