In the process of steaming the cake, steam enters the gap of the cake. Because the steam is constantly replenished, the steam spreads the cake out.
When the cake is taken out of the rice cooker, because the steam source is cut off, the gap of the cake naturally closes and the cake retracts.