Why do volcanoes erupt?
Volcanoes erupt because of density and pressure. The lower density of the magma relative to the surrounding rocks causes it to rise (like air bubbles in syrup). It will rise to the surface or to a depth that is determined by the density of the magma and the weight of the rocks above it.
Reference:
http://volcano.oregonstate.edu/why-are-there-volcanoes