Life is not all about EV. Especially not monetary EV.
I own my home. It's an objectively bad investment (my tech stocks sure appreciated more than a home I bought in 2008 before the crash :) But I like the feeling that comes with owning a home.
I go out for dinner. (Well, used to). It's objectively a waste of time and money, but I still like the feeling that comes with it.
I play guitar. There's no EV attached to it (in fact, people might pay me to stop ;) but there's still an emotional payoff.
The same goes for the lottery. For some people, there's entertainment value in it, despite understanding the mathematics of it. If you've ever played poker for money - unless you're exceptionally good, you paid money to sit around a table in a smoky room. EV is negative, emotional experience is a lot of fun. (Yeah, poker isn't entirely chance, but I promise that unless you're pretty good at it and spent a lot of time learning, it's pretty much equivalent)