And even if you assume it's only people having a bad go at life, every life includes bad parts, despair, etc. We're all vulnerable to irrational acts in those times.
Legalizing drugs just makes access a little bit easier during those times. Once they're addicted, though, no rational amount of jail time will dissuade anybody.