There's still kids eating and playing in the dirt and there's still outside of school interactions going on. Plenty of kids not washing hands.
Wearing masks in school reduces the severity of an outbreak so that hospitals do not get overwhelmed. After all kids can get vaccinated that will help reduce hospitalizations too.