Baking soda causes the caramel sauce to foam up which aerates it and gives it a nice crisp texture, and not too hard.