One should be careful when making this sort of comparison-- at least from the standpoint of the overall economy. The cost of "producing the lottery" is more or less fixed relative to its revenue, i.e. its marginal cost is free, but it's not necessarily free for the other good they're comparing it to. For consumers to increase the number of movie tickets they buy or books they buy, more theaters have to be built or books have to be printed. The cost of producing the extra consumption goods is relevant, precisely because there is nearly zero cost of producing the consumer good that is a lotto ticket.
In other words, money is changing hands (mainly from the poor people's hands into the government's and from there who knows), but resources are not being consumed like they would be if we were constructing new movie theaters all over town. That particular aspect of the lottery is actually praiseworthy and might be missed by a simple comparison of consumer spending on it vs "all these other forms of entertainment combined".