How come medicines are needed for drug addiction treatment?

I don’t really get what the medications are for.

More Meth Drug Addiction Info: