The system of apprenticeship has been used for many hundreds of years . In the late Middle Ages the craft guilds and town governments used to watch and control the system . The system of apprenticeship first developed in the later Middle Ages and came to be supervised by craft guilds and town governments .