When high doses of painkillers led to widespread addiction, it was called one of the biggest mistakes in modern medicine. But this was no accident.