Why Baking Soda in Caramel?

I'm making caramel corn. Once the caramel reaches the proper temperature, it's time to add the baking soda. I know the soda is necessary, because I forgot once, and the results were not "pretty." What does the soda do?