Its not. I'm certain that I have a drive & motivation to be of service to others & to contribute to the advancement of society as a whole. But, as you just said, once you die, what you thought or felt no longer matters. So how can personal happiness be anything but totally inconsequential as a "purpose of life" for all peoples?