Medieval worlds

A town's population grows and more residents earn a living as full-time craftspeople. Which change most plausibly helped make this specialization possible?