The process where gases trapped inside Earth are released to the surface, helping form the early atmosphere and oceans.