I wonder if that has something to do with the experience of death. Narcissistic god complex in those who haven’t had it. Humility and a real sense of purpose, legacy and a connection with those who came before and who will come after in those who have.
Probably not true in such simplistic terms. But I can certainly observe a change in that direction in my own life. And if you read works of people in their 20s from 100 years ago (pre antibiotics), you see a lot less narcissism also. (May just be survivorship bias, of course.)