The cause is another discussion. Behaviors have a complex cause as you presented. One of causes that does not get discussed is imprinting. At one time in the 60’s and 70’s this was high on the discussion list.
I contend it is mostly a learned behavior but no one ever wants to talk about that. If you never take that first drink or smoke, you will will never be addicted.
Homosexuality is an addiction......................
“Homosexuality is an addiction...”
...so is pooping. If you just refused to poop, you wouldn’t have to poop all the time. Problem solved.