The secret lies in using baking powder. When mixed with flour and dough, baking powder undergoes a chemical reaction that produces carbon dioxide. This gas that gets trapped in the dough then creates the light, airy texture that makes cakes spongy and smooth.