Excellent suggestion. As a teacher, I've thought of that many times myself. But we don't because ... parents. And...wait for it... it would be viewed as a disgusting punishment. Sure, it's a natural consequence. But it's filthy and nasty in those bathrooms, and so kind-hearted people like my administrators would rather have a talk. "Restorative justice" it's called now. But it amounts to the same: a talk, an agreement of how egregious the actions were, a promise not to do it again, and out the door you go. Wash, rinse, repeat. Yeah, you'd stop a lot of that kind of bullshit behavior from kids if they simply had to clean up after themselves and make reparations and atone. But our culture has taken "gentle parenting" and turned it into "gentle teaching" and has completely forgotten that "gentle parenting" is just a twenty-first century euphemism for authoritative parenting (or teaching) where there are rules, boundaries and consequences. We don't like consequence in school. I've seen it time and time and time again. We don't do punishment either (well, we suspend kids, sure). But hand them a wad of paper towels and a bottle of cleaning solution and say, "You made the mess, you clean it." Fuggetaboutit. The kids would refuse anyway. And we'd be standing there dumbfounded. Parents would say, "My kid ain't a janitor" and little precious gets away with it again.
This is just my own experience of public-school discipline. We so hate the idea that we might be punishing (though we still do, as I said, with suspensions or lunch detentions) but we seem to hate even more the idea of putting kids in charge of anything...including fixing their own messes. So we focus on the "communication" aspect of gentle teaching and pray to God the kid will just stop. We talk. And we talk. And the kids nod their heads dutifully and say sweet things to us like, "Sure, Mr. Smith, we've learned that was wrong and won't do it again." But they'll do it again. You can count on it.