It involves genetics and brain power that dictate your outcome and it’s clinically noted as a disease.
As previously stated, There are genetic factors involved in the majority of addictions.
Because of a combination of genetics/brain structure and balance of "reward" chemicals. I was dependent on methadone for years (chronic pain), When I requested to be taken off, I went into a horrible withdrawal and spent some time in rehab. Got to learn a lot about it there.