Inverting the pan allows the cake to cool upside down, which helps maintain its light and airy texture. By doing so, gravity helps prevent the cake from collapsing and compressing under its weight as it cools. This technique allows the cake to retain its height and fluffy structure.