The reality is far more complicated than simply saying that we are some sort of property that produces wealth for the state, and that everyone is a selfish drone who only looks for themselves.
Don't take this the wrong way, but saying such thing and putting every person and social structure under the same blanket is just a naive perspective. Especially when knowing that many people that contemplate suicide are a net negative for society in terms of its economic value. There are incurable mental illnesses, addictions, illnesses and unfixable situations that become a waste of capital for our society, even old age is something that drags the economy down and makes many people decide to end it.
Why do the keep us alive then? Because, simply put, the death of a person is something extremely unsavory, traumatic, something that our basic social instincts force us to avoid at all cost. We know we can't fix everything, but we like to pretend like there's a solution, and that everything will be fine.
Then we also have the people who judge the morality of the suicidal without empathy, but I'd rather not get into their shitty perspective.
Ignoring the morality and implications of suicide in favor of mere economic factors is such a simplistic and false perspective on the human being, I just can't take it seriously, and it's such a common view nowadays.