How Oxycodone Gets Laced With Fentanyl

Singer Demi Lovato reportedly overdosed because her oxycodone was mixed with fentanyl. But how does that happen?