This is an example of a degradation ceremony.
A degradation ceremony is used to degrade the social status of a person with the aim of embarrassing her/him for having violated the rules, it is a way of punishing the person by removing their privileges and rights.