In the wake of the closing of thousands of psychiatric beds, we call this "trans-institutionalization." It has also become more difficult to hospitalize and treat people against their will. Both of these changes were well-meaning, and sought to curb abuse (some real, some imagined). Some old psychiatric hospitals were bad places, but after they were closed there has not been an effective replacement. That makes jail/prison the default result for far too many people.
We were buying it second hand on internet (on classifieds site), for $15. So it's a good alternative.
Unfortunately when she learned about this site with drugs, she bought some barbiturates for suicide in forest. She was 4 days in coma but survived without any problems.