Why do people say

Because it's true. People who commit suicide choose to give up. The counter-example I'll give you is that there are people who at some point in their lives feel like committing suicide, but then don't because of the fact that it's haram. They face their problems with patience and come out later with His help. Allah knows them better than they know themselves.