Is it the sole responsibility of a school to ensure well raised (for whichever specific definition of “well”) children? No. However, they are a large factor in the raising of children.
We’ve had a live experiment with this during COVID and it’s pretty clear that kids raised solely at home by their parents fared way worse. Not just on academic metrics, but basic conflict resolution or social skills.