score:11
All about the money. As merchants and trade became important you needed lawyers, to learn law you had to go and find a teacher. The teachers hung around in towns that had important trade links (Paris, N. Italy, Oxford) and the students turned up looking for the teachers.
Gradually instead of hanging around in bars and seedy rooming houses the students and teachers organised themselves into colleges, gradually they attracted rich and royal patrons who built nicer buildings (with bars).
The religous links to early universities are more that canon (church) law was the law and so lawyers had learned it first, than universities growing directly out of cathedral schools.
The middle ages was remarkably litigous, with land being the main store/source of money and inheritence/marriage/divorce being a big source of arguements - people were suing each other in ways that even the modern USA would think was a bit excesive. To the point when to run your father's woolen business you needed a law degree.
Upvote:2
Actually, the universities were NOT an outgrowth of monasteries, but rather of the schools attached to great cathedrals. The difference is important, because this meant they were run by the secular clergy and not monks.