It's not cruel.
It's method to teach children to take care of your own place. Responsibility and Discipline.
And children will start to grow fondness to their classroom that way better. Then they will treasure their school memories, especially their classroom that they cleaned isn't it?