Even if you are Nietzschean, you don't have to be Nietzschean.
There are two ways to ask "why" for something like that: you can ask, what caused this person to treat me like that? Or you can ask, is there a "good" justification for this person to treat me like that?
The first question is realist. Maybe they hurt you because they gained something from it, or it just stroked their ego, or they had contact with someone else who made them think it was acceptable or normal. Maybe they don't value you the way you would like to be valued. Understanding the truth is always the first step to taking effective action. It may help you to decide whether you need to stop emotionally depending on that person, or set clear boundaries with them, or cut contact with them.
The second question is about how you would wish society to work, rather than how it actually works. The answer may be that there was no "good" justification; society would be better off if people did not treat each other like that. It can still be a valuable question to ask because it may help you clarify to yourself what treatment you are unwilling to accept and why. If you can explain clearly why it is wrong to treat you in that way, then it is possible that you could obtain a more beneficial outcome for yourself the next time it happens. Maybe the other person thought it wasn't so bad to treat you that way, but if you can explain the harm it causes they might change their mind. Rare, but it does happen.