Lobotomy, electroshock and castration are historic treatments for various extreme mental disorders that were, probably mistakenly, considered necessary evils lacking other treatments.
These days prozac, benzos and lithium fall into a similar category.