That was helped by the mechanical structure of the glass (known technically as a zeolitic imidazolate framework) having a spongelike atomic arrangement.
Liquid magma is less dense than solid rock, so it rises to the surface in furious bubbles that accumulate in sponge-like reservoirs right under the crust.