A reasonable and useful reading of Adam Smith’s Wealth of Nations is to see it as a railing against the guilds and their control of the medieval economy, followed by an insistence that we must instead have a market economy, one with free entry into lines of work and production. Certainly, this discombobulates the producers who find the protections of their economic rents withering away under the force of competition, but then that’s the point.
Source