Addiction Recovery summed up in a thousand words from the Christian viewpoint.
Focusing the mind on the wrong thing can eventually create the wrong type of urges. God made us a creature of habit, and our habits were designed to worship and celebrate his glory, not to prevent us from getting closer to him.
Addictions that harm us are almost always the result of us worshiping "something else" other than God. For example, seeking alcohol for a source of pleasure, and to dull our anxieties, means our faith in God may lack strength on some level.