We ended up with food safety laws because people did things like knowingly sell unsafe adulterated milk, causing thousands of infants to die (https://en.wikipedia.org/wiki/Swill_milk_scandal). If you do that these days, you will simply go to jail.
Or get executed, as happened with China's 2008 milk adulteration scandal.
You're asking how taxes and fees are different from criminal penalties? I guess the simplest way to put it would be that you go to prison for not paying enough of the one, whereas you'd go to prison for paying too much of the other.