The cynic in me notes that the stock exchange amounts to where moderate to middle class does all of their gambling. With most of the proceeds just consolidating up the wealth chain. At least in lotteries the programs are progressive. :D
If you buy and hold stocks for a long time it's not the same thing as betting on a horse or buying a lottery ticket.