Hello AzulOscura: I don't know as I have any particularly helpful thoughts as to why people do this.

I have had this tendency as well. Over the years, my wife has just kept telling me not to say that sort of thing whenever I did so. So, over time, I've kind-of learned not to. I still slip up occasionally.

But for the most part, when one of those self-deprecating thoughts comes to mind, I now have the ability to quash it before I open my mouth.

I still do it to myself mentally though. When I do, I simply try to smile to the thought & allow it to fade at its own pace...