Once upon a time you looked so fine
Threw the bums a dime in your prime
Didn't you?
Being seen helping those less fortunate has always been a popular way of gaining status. Demonstrating contempt for those less fortunate also seems directed toward this end. When one is having a tough time, it's nice to have someone to look down on.
But things may be a bit more complicated than that.
Giving money (let's say) to someone in desperate need can be a rewarding experience regardless of the purity of one's motivation for doing so. Those of us with means give lots of money to the poor, but the fact that we don't have a choice in the matter tends to take away the potential for the associated warm fuzzies, replacing it with resentment. The government takes our money whether we like it or not, and gives it away to people we never meet, after doing a questionable job of assessing the legitimacy of their need. We don't even get credit for the status points.
I loved this story, and I hope it's true:
I think it was an article in National Geographic. About the city of Calcutta, and a street lined with goldsmith's shops. Thousands of people live in the streets in that city, and those who live on this particular street 'earn a living' by panning in the gutter for flecks of gold which were swept out of the shops. What's important to understand is that the amount of gold which gets swept out of those shops tends to be rather more than it would be if the streets were not filled with hungry people (goldsmithing ordinarily involves the loss of very little--if any--gold). Apparently, in India, ostentatious charitable displays are considered somewhat tacky.
Everybody can work in some way or other.
That depends a lot on what you mean by 'work'. Not everybody who has a job actually works (I wonder how many of the contributions to this thread will be made by people who are at work?).