When you are prescribed opiates, you are not taken off them all at once, you are tapered off. The reason being is that if you stop all of a sudden, the physical withdrawl is pretty bad. That is the hallmark of being chemically dependent.
I am not being judgemental about it. It is just the nature of those drugs. While highly beneficial, they are almost 100% addicting. It does not always lead to addictive behavior.
That is the medically correct procedure. Sometimes folks go over the edge and convince their care-givers that they're still in pain and need morphine. It's sad.