Adam Smith was coming out against Mercantilism, in which governments were active particpants in the market, distorting its function by restricting trade and granting monoplies.
That is different than advocating laissez-faire, in which the government has no role whatsoever in the market.