Nothing in the Adam Smith quote suggests compulsion. There is a very real difference between compelling someone to do something by threatening to throw them in prison, and leaving someone alone, and they deciding to do something out of self-interest.
Remember, the law is not benign.
https://www.theatlantic.com/politics/archive/2016/06/enforci...