That’s how it was until about 20 years ago. In brief the history goes: in the early to mid 20th century doctors used to prescribe heroin or other opiates for pain. They eventually realised this was creating addicts. Not because of a moral weakness in those prescribed for, but because for a large proportion of their patients a few days’ supply, taken exactly as prescribed, would get them irrevocably hooked. So it became medical orthodoxy that opiates were too dangerous and they were basically never prescribed.
When the hospice movement began in about the 70s (slightly hazy on dates, sorry) Cicely Saunders and others pointed out that it was idiotic to worry about addiction in people who had perhaps two weeks to live, which was the patients they were dealing with. So opiates started being prescribed for end of life care.
In the 90s to early 2000s in the USA drug companies saw a marketing opportunity and started talking about an ‘epidemic’ of untreated pain. Doctors and nurses were trained to see pain as the ‘fifth vital sign’ and any level of pain in a patient seen as unacceptable. This ended in the place we are now, with the deaths from opiate addiction well into the millions. Many or most of those started taking opiates exactly as prescribed for real pain.
I agree that Dopesick and other documentaries on the US opiate crisis are essential viewing.
Speaking as someone who lives with chronic pain, one problem I think is that there’s a belief that doctors should be able to solve it, when in fact there just isn’t a pill to make it go away. There’s good evidence that opiates do not actually provide significant pain relief, certainly not for more than the very short term, but that they are very highly addictive for almost everyone. I also agree that we need more and better pain management clinics, access to physios etc. Doctors aren’t refusing to prescribe opiates because they’re sadists who enjoy watching people suffer. They have very good reasons not to.