That's why online school has been such a common thing; but, the United States isn't very good at it, and we haven't built out the appropriate social support structures and patterns (and have gone against those patterns in many cases), so it hasn't been especially viable.
Remote learning was considered better than cancelling school altogether; but, then we ran into the problem of parents and children working and going to school in the same place and that came with its own burdens.
But did we give enough thought to the third possibility? Just sending them to school normally with masks, periodically testing everyone, and contact tracing anyone who tests positive? Young people are surprisingly resilient to the disease, really just the teachers need to take extra precautions.
Destruction of the service industries? Educational handicaps on multiple generations of students?
My point is that it's cheap to wear a mask and socially distance yourself while otherwise carrying on with life. It's extremely expensive on society to force everyone to stay home as much as possible and avoid certain businesses. It's expensive because it pushes the country more rapidly into debt, it pushes millions into poverty, it drives up suicide rates, and dozens more second and third order effects we won't find out about until the coming years.