That is a much broader question, as I stated with the idea of legacy.
The whole do things to help others even if you do not directly see the benefit. The broader sense of altruism that many tend enact.