Sourdough discard adds a tangy flavor to the banana bread, complementing the sweetness of the bananas. It also helps in giving the bread a moist texture.