Why is it that mental health problems (especially depression) causes more suicides than any other physical illness?

I have been kicked in the balls before and that hurts more than depression but I didn't want to kill myself when I got kicked in the balls.

However, if I get depressed again for many months, I might lose control and kill myself, even tho depression doesn't hurt (mentally yes, but not like normal everyday pain)