Question: what do baking soda and baking powder do in cookies?
Answer: Some recipes call for both baking powder and baking soda. These recipes contain some sort of acid (yogurt, brown sugar, etc), however the carbon dioxide created from the acid and baking soda is not enough to leaven the volume of batter in the recipe. That's why baking powder is used as well– to add necessary lift.