I used to agree with your opinion and you may be right.  The reasons why someone takes drugs or abuses alcohol are vast and often complex.  Dual diagnosis treatment is not often available, but is often effective.  Supplying "clean drugs and a safe place" may be of some help to some people; others suffering from some form of mental health (depression/anxiety for example) may not want to die, but wanting to live become elusive.