I never said that school teaches it, but school forces children into a public environment where they have to interact with other children, especially on group projects (or even just students collaborating on their assignments, which honestly needs to happen more often and be encouraged instead of discouraged), the result being that they learn valuable social skills as a consequence of the environment. It's kind of a side-effect.