>Schools do not exist to fix every social problem
By law, they monopolize up to half of a child's waking life for more than half of the year. This time commitment requires that parents put at least one meal, a substantial portion of the child's physical development, and almost all of their intellectual development (and, by extension, a substantial portion of their behavioral development) in the hands of the school.
If educational institutions are not taking seriously their potential influence on the social outcomes of their students, they're completely misunderstanding the practical mantle they've taken on. And so have you.
That's one philosophy, sure. My philosophy is that schools that graduate students who are illiterate and innumerate have failed, no matter what rhetoric they put out about equity and social problems.
(There are limited situations where it does make sense, logistically, for schools to provision social services. E.g. meals for students who don't have access to steady food sources. But those are relatively uncontroversial, as opposed to curricular and classroom management practices that make sacrifices of schools' educational integrity for a theoretical goal of equity, while failing to even deliver that.)