Yes, for glory. And to feel good, because they did a good deed. Some people trip others just to watch the old man fall and laugh. Others help him get up, and their ego swells with pleasure or pride – "I helped the old man, I am much better and more righteous than those jerks or all the people who indifferently walked by!"
If you can't find something to do when there are no people around? Poor thing. But homeless people find a way. Hermits find a way, or simply people who are tired of the city and move to a house in the woods. Even primitive animals with underdeveloped brains live perfectly well without people. And even without other animals of the same species, which can be considered a miracle of nature.
Of course, dying is much more pleasant. It's a convenient solution when you want to relieve tension, but there's no one around. Right?
Although, yes... becoming homeless is cool, I guess; they probably strived for it for a long time and are incredibly happy. "People who are tired of the city and move to a house in the woods" – let's assume. I myself got tired of it once, about five years ago. Fortunately, I have a house by the lake, and my favorite activity is there. The first week was great. The second week, I started to miss people; I wouldn't have lasted a third week.
Even if we set aside all the lofty feelings, there's sex, which is an essential need for an adult. No, I'm not as far gone as animals in that regard...
Is dying pleasant, especially in the ways you described? And is it pleasant to stay alive when your parents, children, close friends, and loved ones have died? To survive in order to exist like an animal or a homeless person? No way, where's the lever? Give it to me!
The instinct for self-preservation is dominant. It is much stronger than the instinct for socialization with members of the same species.