That’s arguable.
State lotteries are highly regulated and transparent and typically return 50% of their capital to participants.
In principle it’s more about why a poor person can access lotteries but not private investments, not the exact math on E[X]