What happens when gas or a fluid is trapped inside a rock?

The Kindness fruit stand saints were busy unlocking the mysteries of how gases or hydrothermal fluids locked inside a rock formation create crystals.  With our safety glasses and hammer in hand we each had the opportunity to open a geode.