A study has found rocks at the bottom of the ocean can make oxygen.