A lot of people who are against drug use want them to be illegal and dangerous to use. Someone overdosing from buying drugs illegally is a preferable outcome for them because they think it will discourage people from buying illegal drugs.
They want the drugs to be both illegal and dangerous.
In reality making them legal and regulated decreases use and is safer for those that do, which doesn't work for people who think suffering is the goal.