And instead of purchasing them on the street from dubious sources where the drugs may have been cut or mixed or mis-measured or not even actually what they claimed to be, these people were able to purchase them from sellers who had been peer reviewed thousands of times. Not an ideal situation, but often far safer than purchasing from random people on the street.
In my opinion, the solution to drug addiction problems is not prohibition. That's what we have now and it's not working.