The tl;dr is that a lot of addiction comes from unresolved trauma. Drugs, particularly opioids, give the sensation of returning to the mother's womb. They are comforting in the moment but it passes quickly and never quite get back to the satisfaction of that first high.