Baking soda also serves another important purpose when it comes to cookies: It encourages spreading by raising the mixture's pH, which slows protein coagulation. This gives the dough more time to set before the eggs set, which results in a more evenly baked cookie.