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. Giving in secret is nice, but giving in the open is nice too. 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.