Astronauts on the International Space Station (astronaut Jasmin Moghbeli shown doing repairs) get oxygen via electrolysis, in which water is split into hydrogen and oxygen. Adding a magnet could make that process easier in the weightless environment.
NASA