How come methadone is used for drug addiction treatment when it’s also an opiate?

This just confuses me. Wouldn’t the patient be then addicted to methadone?

More Meth Drug Addiction Info: