Both baking powder and baking soda are chemical leavening agents that cause batters to rise when baked. The leavener enlarges the bubbles which are already present in the batter produced through creaming of ingredients.
When using baking powder or baking soda in a recipe, make sure to sift or whisk with the other dry ingredients before adding to the batter to ensure uniformity. Otherwise the baked good can have large holes.