Oh, geez. If they played video games for fun, would you be explaining to me how unwise an investment that is?
Some people enjoy gambling. If it pays off, yay! If it doesn't, it was only a couple of bucks that they felt they could spare.
I'm aware there are very poor people who play the lottery in hopes of it fixing their lives, even homeless people. And I don't think that's a great idea. But there are people who can spare a few bucks who just like playing.
One person I know used to call it "Contributing to my nephew's scholarship fund" because the lottery covers education expenses in that state.
I have only rarely played the lottery. It's not really my thing. But not everything in life needs to be decided with a slide rule for someone to be fundamentally healthy. In fact, I have seen studies that suggest that people who do a little gambling are typically healthier than average.