Why any other element except fluorine wouldn't take electrons from oxygen?
You can consider thinking about charge to volume density. Fluorine is very small and has highest charge to volume ratio among other group 17 elements. For that reason only fluorine is able to snatch electrons from oxygen.