Because individual people have inherent worth, and society is built on that assumption. People with suicidal thoughts often just need a good friend.
if you're eager to separate the idea from the sanctity of life (or whatever), you can just throw this into the huge bucket of things we do as a society to dissuade behavior with significant negative externalities. and suicide does come with a lot of negative externalities
Nice try. All of said negative externalities are also tied (directly or indirectly) to the sanctity or value of human life.