I'm going through the same thing right now. It's a very common response to abuse, or some parenting types, where the child is never good enough, never gets good enough marks, etc.
A lot of the time there are two selves. One that wants to be loved and the other that wants to be hated and...