Alkaline baking soda reacts with brown sugar and corn syrup, which are acidic. The reaction creates lots of tiny carbon dioxide air bubbles. These air bubbles keep the caramel from getting hard, resulting in a softer texture.