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.
This type of business is very profitable, and having only a simple math, if millions of tickets are sold and at least 100 prizes are awarded, it is still very profitable.
All the people who have casinos, and that are doing well, is because they do things well and under the legal framework, there are many examples of casinos that are highly reputable and very reliable, as is the case with duelbits, that there are always people who try to tarnish the good performance of casinos by making accusations based on lies, and this occurs in many casinos, in most of them to get money from them, these are very low practices but they continue to do so.