Whipping the eggs and sugar creates a lot of air inside the batter. As the batter is heated in the oven, the air expands and pushes the batter up, creating the hump that madeleines are famous for.