It's both.I've heard the lottery both called the stupid person's tax, and the poor person's tax.
The stupid people are .. well, stupid, so they buy them.
The poor? They buy them because they see no other recourse to get out of being poor.
Alas, if they'd but save the money they spend on lotteries, and then invest the savings?
They'd likely be less poor...