During baking, the moisture in your cookie dough turns into steam that pushes through the dough and helps it rise. Leavening agents like baking powder or baking soda release gas in the dough, also causing it to expand.