No one is keeping you here but yourself. You have the ultimate control of your own life and death. You can't use your lack of control to justify not ending things. That's dishonest. You're probably just afraid like the majority of us here. That's ok. It's ok to be in your emotions about it. It's a super hard thing to deal and come to terms with.
As to the reason why anyone else would want to keep you alive be it your family, friends, society, the government, etc... that's actually not complicated at all. It's just simple self interest. We're a product.
We can be useful in so many ways. Losing that asset is detrimental to anyone who sees value in productivity.
Your parents family and friends love your existence and want you in their lives.
The government wants to enslave you to prosper and continue.
Society relies on you to keep civilization running.
Nobody really cares or has any vested interest in indiviuals. If they did the world would crumble. Anyone could do anything. Sure, you might be able to kill yourself or be allowed to die in this hypothetical world, but by the same token... rape, real slavery, theft, murder, all that would be allowed too.
The way things are is truelly annoying but its actually the lesser of two evils.
At least for most of the world where "freedom" is a concept.