Baking a cake is a chemical reaction due to heat helps baking powder produce tiny bubbles of gas, which makes the cake light and fluffy. Heat also causes protein from an egg to change and make it firm.
Baking powder being CO2
NaHCO3 + NaHC4H4O4 ===> Na2C4H4O4 + CO2(g) + H2O