Lottery is not something you buy tickets so you could win, it is something you buy tickets so you are not missing out. Why? Well if you have just one ticket per draw, that means you at least have a chance and it is a much much bigger chance than zero, the difference between 1 ticket and 100 tickets is smaller than having zero or one.
I know that it is not going to end up being the great thing that we all hope for and we may win, I know we will lose 99.99999% of the time, but at least you got a ticket. That is why many buy tickets, even if just one, because it would give you a chance that you could end up with winning something much better in the long run, a possibility.
If the probability of something is more than zero, but extremely small, then you might as well consider it zero.
For example, the probability of you walking through a wall is very small but it is not zero given how quantum mechanics work. Would you try to walk through every wall you encounter? probably not.
But I get your point, it's having the hope of something big happening to you in exchange of a small price.
That's also why some people continue solo mining, trying to grab a block even though it is really unlikely.