Baking soda makes the boiling water more alkaline, giving the dough a chewy texture and that iconic pretzel flavor. It also helps the dough achieve that deep, golden color when baked in the oven.