I think you are confusing cause and effect.
Contained pressure is what splits the rock.
Only after it is split can the contained pressure be released through the new opening(s) producing an explosion.
Watch Mount St Helens footage, the whole mountain heaves upward, one side falls away uncorking the volcano. The pressure below can then be released. In that case in a severely explosive manner.