Generosity is, for once, a classic virtue. In Islam it’s called Zakat: the duty to give a percentage of your possessions to the poor.
Generosity is linked to another classic virtue: detachment. In both Hinduism and Buddhism attachment to stuff, money and status is seen as a problem. Letting go of that in the form of generosity is spiritual work. In Christianity too giving to the poor is a central virtue.
Attachment to status is subtler. A lot of people notice this only when it becomes a problem: the boss that ends up in a retirement home. The socialite (is that still a word?) that can’t keep up anymore because of Alzheimer.
At such moments letting go becomes a necessity. This is the reason that in countries like Japan Buddhism is for old people: that’s when letting go becomes the central life lesson.