as the egg heats up, the air inside the bubble expands. as the hot air pushes outwards, it puts pressure onto the shell, making it crack. you can prevent this by making a pin-pick in the bottom rounded end of the egg. this will let the expanding air escape.