So in Germany, only medical doctors are allowed to prescribe medicine, and therapists are not doctors, but psychologists.
Medicine against psychological issues are prescribed by psychiatrists (Psychiater), who are doctors focused on psychology. As far as I know, you are usually referred to a psychiatrist by a therapist, but I’m not sure on that point.
So in Germany, only medical doctors are allowed to prescribe medicine, and therapists are not doctors, but psychologists. Medicine against psychological issues are prescribed by psychiatrists (Psychiater), who are doctors focused on psychology. As far as I know, you are usually referred to a psychiatrist by a therapist, but I’m not sure on that point.