Leaving the teacher aside, assuming that all the kids were masked, and since this is California I think they probably were, why did the masks not protect the students?
because masks do nothing to prevent the spread of covid.