It's a curious thing how much wealth and context or generalized safety make people soft and desiring of proving to ourselves and others that we are what we say we are. I tend to think it's far more important at this point, especially if you are a person of means, to really judiciously investigate charities to give to that are worthwhile, and forget that random person kindness nonsense. I say nonsense not because I don't occasionally give to random people on the street, but rather that so much of it is playing into scammer's hands, and it is unsafe. You realize this when you go to third world countries. Even in the USA, if you do any research or follow what certain panhandlers do, they will do all they can to get something out of a random person rather than just go to the free food, room and board that requires them to do something, give something of themselves (like just behave). It's not easy but real charity isn't parting with $5 (usually, always), it's giving more to something you've actually researched, and to people who are grateful that you actually know in some capacity, or can check up on.
The ancient world had no significant excess except for the real higher ups or rulers, and certainly there was no welfare. It's lame, and I correct people when I hear it, to point out something about "widows and orphans", appealing to biblical times, when now they are literally wards of the state or inherit houses or millions from husbands, or get freebies from SSA. The point of that back then was that they didn't have a chance to work and could barely eat if a man didn't help them. It's weird that smart or learned people act like they don't know this but human emotionalism is a big, big thing for people.