Habits are like that. Sometimes depression is so bad that people use cocaine or nicotine as a temporary fix. Sexual pleasure can also be abused in the same way. Underneath what seems to be superficial pleasure is a person who is deeply depressed, and doesn't have the tools to deal with it. Unethical behavior or drug habits only make depression worse.
Bad things happen to good people for our learning.
There is good argument that sin of any kind can be boiled down to a lack of faith. The thought that there is no faith , no one outside of ourselves to have the answers is like any addiction. The 12 step approach to the addiction of depression and self-criticism works . He can, I'll let Him, etc. Someway we need to believe that there is nothing that can separate us from the love of God, not even our poor opinion of ourselves.