Both are immediate release opiates that are used for breakthrough pain
That’s why it doesn’t make sense to have both. More likely the doctor was prescribing one for moderate pain and one for severe pain, but that strategy seems very risky to me when more than likely the patient would just end up taking both.