Some hurtful behavior can have a secondary benefit to the person hurting you. Some behaviors can cause you to react in such a way that brings the hurtful person benefit. Because of that, they know how to get their needs simply by acting badly.
If you want to know why you can never please someone, this episode might help you answer that question.