You didn't seal the edges well enough and/or you didn't prick the dough before baking.