Cookies turn out cakey or puffy because too much leavening agent was added to the mix. Leavening agents, such as baking soda (a quick-acting agent), baking powder or eggs whites, are substances that causes dough to expand by releasing gas once mixed with liquid, acid or heat. Too much of these leavening agents will cause the cookie dough to rise too much when baking.