They aren't stupid. They have an addiction, which addiction is mostly based on underlying undressed mental health issues. They pretty much are self medicating with substances.
It's a cunning "disease" and I can assure you, most addicts wished they were not addicts.
In some respects, everyone has a vise to numb out some pain