The hope of winning the lottery is essentially false hope, but false hope is better than nothing, that's true.
But look at LatencyKills post https://news.ycombinator.com/item?id=46474645 if someone is buying 100s of dollars worth of lottery tickets that's a real problem, I'm sure you understand that with your mention of the $10 you spent, but you should consider the people who sneer and get upset about people buying lottery tickets might not be people who care much about 10 dollars but rather people who grew up with caregivers that spent all the money coming into the house on false hope.