Schools are not merely in the business of maximizing education, they have their own prestige to uphold, and they would like to give degrees with their name on it to students who have actually upheld their end of the contract.
(The other side of that contract is, kids are not merely attending schools to learn, but to earn a degree that carries some degree of prestige)