The doctor gave him opiates to put him in more pain.
Opiates are very efficient pain relievers and do not incite more pain physiologically than before.
Opiates technically can't cause you to have physiological pain independently.
Too many opiates won't relieve or increase your pain but kill you instead.