It is also not sufficient to be beneficent toward those who repay, because this is also characteristic of worldly people themselves: on account of which he adds: And if you do good to those who do good to you: the Gloss says: "That is, for the reason that they do good"; what thanks is there to you? that is, what merit? as if to say: none. And the reason is given: Since even sinners do this; for a benefit done in exchange for recompense is not gratuitous but mercenary, and therefore neither is it acceptable. Whence Ecclesiasticus 20: "The gift of a fool shall be unprofitable to you: for his eye...s are sevenfold: he will give little and upbraid much." But that which is given freely and cheerfully, that is acceptable, according to 2 Corinthians 9: "Everyone as he has determined in his heart, not out of sadness or out of necessity: for God loves a cheerful giver." If therefore to do good to those who do good is merely a debt, to do good to those who do not do good appears gratuitous, then to do evil to those who do good is inhuman and most cruel: which indeed the sinner does when he offends God; according to what is said in 2 Paralipomenon 32 concerning Hezekiah, that "he did not render according to the benefits which he had received from God, because his heart was lifted up." Whence Christ can say that word of the Psalm: "They repaid me evil for good," and the sinner can say to Christ that word of 1 Kings 24: "You have rendered good to me, and I have rendered evil to you." And by that very fact, if he wishes to be reconciled to the Lord, it is necessary that he himself do good not only to one who does good, but also to an adversary: and such is the benefit of charity, according to 1 Corinthians 13: "Charity is patient, is kind."
Source: Commentary on Luke, Chapter 6