School
Some children really hate school. Maybe it really does nothing for some people. But in many countries it is compulsory, and expensive for the taxpayer. The growth of knowledge means many parents could not hope to teach their own children all that a school could teach. The downside is that many schools do not teach effectively.