I follow author Joyce Carol Oates on Twitter (we're about the same age) and she said something that liberated me. About memoirs she said something like "nobody reads them, not even your own family." I realized that was true because I know someone who wrote one and nobody cared. It freed me up so I could really get the message of Ram Dass in "Becoming Nobody." I used to work in health care and once there was a patient…
You have to really work at it to truly die alone. Someone somewhere is going to remember you fondly unless you were a complete asshole. This is often the fate of lifetime narcissists who no longer have the energy or presence of mind to maintain the façade. Even the most vicious of bigots have well-wishers at their funerals. You have to mess up hard to be less liked than a Fred Phelps type.
Let's discuss someone that lives a long time above the median lifespan. Maybe 95. Almost all of their former classmates, colleagues, siblings, cousins, partners, and peers are either dead or too sick to travel to the hospital/funeral. They've likely had mobility, energy, or cognitive problems that reduced their involvement in the community over the last 15 years. Many people 20 or 30 years younger that they might have mentored, raised, or inspired will have passed. To someone 40 years younger or more they would have always been 'old' in their mind, and generational gaps would conspire to make them further apart socially.
Someone that dies younger than median will often have more hospital visitors and more funeral attendees by the simple fact that more of the people they knew in life are alive and healthy enough to travel.