Baking powder helps cookies rise and gives them a lighter, softer texture. It creates gas bubbles when combined with liquid and heat, which causes the dough to spread and puff up slightly during baking. This results in cookies that are thicker and less dense compared to ones made without any leavening agent.