Both oxide and fluoride ions are highly electronegative and have a very small size. Due to these properties, they are able to oxidize the metal to its highest oxidation state.