A 63-year-old man is seen in the ER for new onset confusion. He has been taking codeine-guaifenesin as directed for a URI. Respirations are shallow and the rate is 10/min. Pupils are miotic and the patient is somnolent. Exam and vitals are otherwise normal. The confusion resolves with administration of naloxone. Why did this patient most likely have the drug reaction?