Answer:
The technical name is overcorrection.
Step-by-step explanation:
Overcorrection is a type of punishment applied to modify an unwanted behavior. In the case mentioned in the question, we have what is called restitutional overcorrection. The person who has performed the unwanted behavior is asked to restore things not to their original state, but to an improved state. Imagine a student draws an explicit picture on a blackboard at school. If he is asked to erase not only that board, but all the boards in the school as punishment, that is restitutional overcorrection. It is exactly what happened to the woman. She was not only asked to restore the ward, but to restore it better and cleaner than before.