Deep-sea rocks packed with valuable metals may also be making oxygen in the deep, dark ocean—raising new questions about the cost of mining them.