A few billion years ago, it was volcanic action like this that lead to the formation of oceans and a decent atmosphere.
The earth is an amazing thing.
When you think about the age of the Appalachian Mountains vs Rocky Mountains, it’s easy to see that these periods of upheaval happen periodically.
I was amazed when I visited the site of a volcano north of Flagstaff AZ that was active 800 years ago.