Teacher gave the kids an impossible problem. Poor kids, I guess.
If the lesson of an "impossible problem" was a deliberate assignment set with an educational intent then there should have been a follow-up or even a primer beforehand so that the "poor kids" are not left thinking that mathematics is just randomly weird and absurd.