Very few institutions are single-purpose. An uneducated populace is detrimental to growth, but as you note, the 'daycare effect' of schools is also a valuable benefit. Your arguments don't negate the possibility that schools are run by good actors who believe their work benefits students in the objective sense.