Scientists have uncovered the unusual role of volcanoes