Magma  has a lot of pressure inside of it since it contains a lot of gas. When the pressure builds up the magma  can gush out of weak spots in the crust . A volcano is an opening out of where the weak spots in the crust  erupt.