Would you do the noble (altruistic) thing if there was no one there to see it?
Morality is not contingent on no one looking. (And true charity doesn't seek recognition.) The far far far majority of moral acts we choose are when on one is looking (and when they are looking do they know you?)
And altruism is PRO-evolutionary because moral insures safety which insures the most possible evolutionary paths.
And religious people don't (or shouldn't) think that god is observing and keeping score. Religion is like golf in that you call your own fouls. That's the part that I, and most atheists, and certainly Objectivists, have a big problem with... being moral because you SHOULD be moral, not because it's your value.
And to that point I pissed off a semi-friend over this very fact sometime ago. She ran a marathon and proceeded to tell everyone she ran the marathon. When I asked her why she said it was for health and for personal achievement. So I asked her if that's so why tell anyone? If it's really as selfless as you say then why seek recognition for it? Why not get up one morning and run 26 miles and don't tell anyone?
(And yes, I do think marathons are mostly about bragging. And I have no problem with that either... the problem I had is pretending it's not a selfish act. And if I had to repeat that conversation I would just accept her implicit request to be acknowledged and give her that. )