If I have understood the forum text correctly....
The former is the person who is doing it because he likes to.
And the later.. (I would not say religious here) does it out of fear.. doesn't want to see himself in a place where he might get into if e doesn't do so...

If you are helping to make this world a better place to leave... irrespective of the motive behind it .. it is good...

And when we talk about a person who wants to help because he feels like - I would not be surprised to see majority number in this category shall be religious guyz...

And people who do out of fear of Hell - Shall be either guyz who do not believe much in religion but still jus to keep themselves safe from hell shall do the act..... (you know jus in case god exists.. I should be safe types..)
Or the religious who are on self-realization journey and still have limited exposure to true essence of religion.

The extreme ends of anything always look similar if not looked deeply.

A child is innocent, so is a 70 yrs +
The former is so, because he is not aware about the ego (He is unaware)... And the later bcoz he has seen many things and understood ego is not worth the life... and innocence is bliss (He has realized)... If you look from out side.. both would look similar..
But are extreme ends of a mans life....

___________________________________________
Reality is a Illusion Caused Due to Deficiency of Alcohol