When magma reaches the surface gases what out of it
When magma reaches the surface gases bubble, often explosively, out of it.
They bubble out of it because of the intense heat.