When a volcano erupts, it spews out lava and gases from deep inside the earth