if the food has a high water content, like an egg or potato, the water expands and turns to steam. without a way for the steam to escape, the internal pressure rapidly builds until the food explodes.