Many bean recipes include a small amount of vinegar added near the end of the cooking time. It's optional but does serve a specific purpose. Vinegar helps break down the indigestible sugars in beans to help with digestion (less gas). It also adds a subtle bright flavor to the finished soup.