By my understanding of the term, a gift to charity is a good deed even if it produces a tax deduction for the giver. A service performed by a child is a good deed even if done on assignment from the Scoutmaster. Someone who rescues a neighbor from a burning house has done a good deed even if the thought of getting a medal flitted across his or her mind during the rescue.
Good deeds are likely to be recognized.
The stranger to whom I give directions on the street may thank me, thus showing appreciation. Having pulled my neighbor out of the burning house, I may get a medal from the mayor a year later. Well, then, I'll take the recognition here. Attaching a giant flaming ball of gas to my tiara would make for uncomfortable headgear at best. By my understanding of the term, a gift to charity is a good deed even if it produces a tax deduction for the giver.