I do on occasion. I don't expect to hit the jackpot though.
If you plan on the lottery being your retirement, you are delusional. I shake my head when I see people buying $100 or more of tickets at a time, and have seen them doing it regularly. All while appearing to be the ones that can least afford it (yes, being judgmental).
I have won some, but have spent way more than I have won for sure.
Am I wasting my money, yes, but I know people that waste money on other things as well.
Heck, I plan on "wasting" ~$50 today going shooting, but it is entertaining and I have fun doing it.
If I spend $2 on a scratch off, I am entertained for 20 seconds.
I do the lotto on occasion as well.
My sister in law told me "you will never win", but I told her no, she will never win, because she does not play, I have a 1:however many million chance of winning when I do play.
Again, not expecting to win, but $5-10 every few months is not a big deal.