There are people whose mental issues are caused by the physical condition of their brain, often having to do with an imbalance of neurotransmitters. Those people medication can be a useful bridge for, to allow them to reach a mental space where they can successfully re-orient their perspective and priorities; just relying on medication would be insufficient, but it can absolutely be a part of the solution. And some people need to talk through their issues. But there's a lot of snake oil being peddled in both modalities.