Adding lemon to bean soup can enhance its flavor by providing a bright and acidic contrast to its richness, making it more balanced and refreshing.