I would add to this that school as a physical space has also its advantages, not only for education but also as a sort of not necessarily safe space but a point of reference and a place where, in some instances, kids go to school and have one complete meal a day. In some areas, that is provided, and it's the only full meal that, in some instances, they will have. There's also protection for girls. That is one major advantage of the physical presence at school.
There are certain elements that go beyond the education aspect that advocate for physical presence in school.