Nah, they are not comparable in a meaningful way. Sure, at a high level, you can apply aspects of “gambling” to both examples. But the biggest and most important point is the ability to spend actual money for additional changes at “winning”.
People are against gaming because of some deep-seating fear of Random Number Generation by itself. They are against it because of how easy it is to lose money.