Unlike lotteries as you said, casino is not 100% luck. I don't know how lotteries work, I haven't played on lotteries before but I see the shops and tenants around and I don't have idea how lotteries work. My take is that if these things are pure luck, one day someone needs to be lucky and rake the company.
At any cost lottery companies won't get shut just of one's pure luck. If the entire prize money comprises of $5million, the lottery company sells tickets and makes atleast $10million. So, at any cost the companies won't get raked.