The actual line of reasoning being applied is not that, though - it's a very specific case where effort was already applied toward charity but a different kind of effort could have been applied for greater effect had the applier been solely interested in helping and not inflating their own ego.