> Most people know that on average you will lose money
I don't think most people know this. Perhaps you do. Perhaps most of us here on HN know, but I strongly doubt most people who play do, given that most people who play are poor [1].
> What makes it worth playing...
This isn't true either. Most people who play play it for the smaller winners [1].
Finally, I just want to reiterate that the point of this is exactly what you mentioned. By making the amount small enough such that it wouldn't have a huge effect on your lifestyle, you make it safer to disclose who won.
[1] https://www.vox.com/identities/2016/1/13/10763268/lottery-po...
You don't think most people know they're gambling when they buy a lottery ticket?
They also figured that for a few dollars - which most of them could easily afford here and there - those were the best odds they were ever going to have.
They spend $1000 on tickets, and the day where their next $5 ends up winning them $100 on a scratch-off makes it all worth it.
Put another way, as a one-time deal, would you consider spending $1 for a 1-in-a-million chance to win $100,000? For many people, that isn't a totally unreasonable bargain. But if I ask you that 10,000 times, the cost becomes spending $10,000 for a 1-in-100 chance to win $100,000. That's the real problem with the predatory nature of the lottery.
Most lottery ticket buyers may be low income, but that doesn't mean they're stupid.