I agree with your point of view. Those people who are throwing money into gambling and just having fun with it need to use that money for the welfare of others who have no source of income. This thought should also come to their minds, but they still show that they prioritize their own fun and happiness over other people's needs and help. I would say that these kinds of people should donate their extra money instead of throwing it away on gambling. I advise people not to act like the rich, they should use that money for someone else's needs instead of losing it. Gambling is not a good or proper way of earning money. Beginners should know that they will likely lose, and when they reach a point where they think they know everything, they will have no time or effort left, and they will fail in life, ending up with zero assets. So it would be better to spend it on yourself or others instead of losing it in gambling.
We can't know or say how people want to spend their money.
Maybe for them, spending it like this to have fun gives them that emotional boost that is good for their mood and spirits.
Of course, when it becomes a problem there are no excuses that hold up.