Morgan Housel in Psychology of Money talks about this. It does make sense, unfortunately, some of these people are at a point where the probability of them living a comfortable life via winning a lottery is higher than anything else.
Hence why in that case the expected utility of a lottery can be greater than the utility of its expected value (which is negative).
Even if true, that would imply ANY probability of a comfortable lifestyle is ~0.
That is definitely the case, and it's precisely the point that parent was making.
For most people who buy a lottery ticket they’re really “buying the dream”.
Also when in a capitalist society when big problems come up sometimes the easiest or perhaps only way to solve those problems would be having enough money to solve them.