Mug cakes rise up when cooking because the microwave cooks from the outside in, making the sides of the mug very hot. It pushes the cake up while cooking. Once the cake is cooked to the middle, it sinks back down.