" is ungrammatical. It should be, in the interrogative: Why have you done it to me? Or, as an affirmative sentence: Tell me why you have done it to me.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.