While stipulating that there are exceptions to every rule, I have personal experience with some people who were home schooled and largely shielded from the outside world. Their young adult years have been pretty rough, as they try to learn enough to be safe and then successful with their lives.
My social experience in middle school was horrific, and school in general tried its best to beat any interest in learning out of me.
If those are the stated goals of school, most of them do a piss-poor job at meeting them.