Baking soda as the name implies is primarily used in baking as a leavening/raising agent, meaning it helps in foaming up when added to the dough or batter, which makes the baked goods to rise when biological fermentation (like using yeast) is not desirable.