Sure you can analyze the "why" of why you talk to yourself that way but sometimes, it just best to do something positive and avoid the "paralysis of analysis" created by blue sky questions.
The thing that is utterly important to this profoundly simple technique is that you are interrupting (in a positive way) the pattern of your usually automatic response and acquiescence to a harmful post-hypnotic suggestion.
This harmful post-hypnotic usually goes something like "You screwed up again and this proves you are irredeemably flawed because you can feel the "rightness' of your wrongness (unworthiness)!"
So the next time you start beating up on yourself, positively change something about the process and you will discover the true meaning of this quote: "Fear knocked at the door and when Faith (positive action) opened it, there was no one there."
C. Devin Hastings
"Speak well to yourself because your deep mind is always listening."