The sandwich takes far longer to grill than the egg takes to cook. If you crack the egg in the middle of the sandwich at the beginning of the grilling process, the egg will be overdone by the time the sandwich is cooked. By partially grilling the sandwich on both sides before cutting the hole and adding the egg, you end up with a golden sandwich and a dippable egg yolk in the middle.