Being humiliated and in some level of pain is not always a bad thing. Some people enjoy receiving it, while others are more into inflicting it upon others. This kind of (sexual) act is described as Sadomasochism. It has evolved through history and is still popular among kinky people and sexual fantasies of many.