Psychiatry barely understands HOW exactly many prescription meds work so don't expect exact answer on how non-prescription substances work.
But if approached properly, single session with psychedelics may have beneficial effects of months or even years of psychotherapy. Week or two after such session you start noticing that some things simply stopped being problematic.