Short term yes they have a purpose, to get you through a difficult time like a bereavement or redundancy or break up etc. But you are just kicking the can down the road ... if it’s a long term issue for a person by far the best treatment leading to the best outcomes was therapy and making life changes. Diet and exercise
I think this is so well established, it's explained to everybody who gets an antidepressant prescription. It's also in the leaflet and on any information page you seek about your meds.
It surprises me that, with all the frequent articles, videos and programmes bewailing the widespread use of SSRIs, none of them address the fact that many of us live depressing lives. Unbearable, in many cases, with the drugs providing some much-needed support. We simply do not live in a perfect society.
I'm fortunate to have done ten years of heavy-duty therapy, to have maintained a high level of fitness until illness prevented it, to be aware of and, yes, grateful for the good little bits of each day, and my diet's nutritious. The other shit, though (illness-related) is tough to deal with. I need more help than fresh air and meditation can provide. Few other people living under intolerable strain have my advantages, and we all cope a little better with the drugs.
Put us in a paradise with no money worries, all the competent support services we need and an uplifting social environment, then perhaps this oft-repeated lecture would have some relevance.