That doesn’t mean that corporations should have the freedom to exploit society for profit while being a total net-negative. Enabling a vice in the name of "freedom" isn’t a virtue.
A little black market gambling is completely fine as long as the bookie is the one committing crimes and not their customers.