I think the idea is that religion should have no influence on the state. So the thinking might be that if muslims wear hijabs to public school, that's "endorsing islam" or "promoting islam". By keeping hijabs out, there wouldn't be a way for islam to creep into public schools.