Nobody knows. But early life trauma and genetics probably play major roles in most people. There are many paths to overcoming it, but all involve some form of psychological therapies, as well as finding more supportive and healthier people to be in your life. Specific addictions need specific treatments, so it depends on whether you are talking alcohol, drugs, gambling, spending, sex. See a therapist to start.