No doubt medicine has its uses in treating anxiety and depression, a momentary reprieve can grant you the clarity to see what you do need to change to feel better. However, I see many people online who cling so strongly to the idea that anxiety and depression are chemical imbalances that you are unlucky enough to be predisposed to developing and that balance can only be restored through medication, that when you suggest that anxiety and depression are not diseases and so can be treated to the point that they are not a problem anymore, people will react violently, as if you just assaulted their identity.
This line of thinking makes it extremely difficult for them to get relief. It is also beneficial to pharmaceutical companies who can make a customer for life by convincing customers that if they don't have a certain medication they will always feel miserable.