You know you’re going to lose.
You know the money is wasted.
You do it anyway — and knowingly just pretend those first two facts aren’t true.
Then you lose your money. Which you knew was going to happen.
If you happen to be at a casino, make exactly one bet in your lifetime and there’s a significant chance you’ll end up ahead. On average you’ll be out money but we don’t live out every possibility and average them. It’s just one event and you could easily end up ahead, it’s only as you repeat it with minimal gains and negative returns that things quickly become a near certainty.
With Powerball the odds are low but not astronomical that you buy 1 or 1000 tickets and end up ahead. It’s the most likely outcome by a massive margin but due to non jackpot prizes a long way from zero.
However again the odds of breakeven just reduce the cost of play they aren’t the only thing people get for their money.