Why do I get these thoughts about hurting myself?

I’ve been a single guy for years by choice because of reasons. Mainly because I just don’t think I’m good enough for any girl. Because I’ll just leave them if they’re not my soulmate. And I don’t want to hurt any girls by breaking up with them. I’m good looking, and I always get stared at, or have girls flirting with me. But I know I need to work on my career and get myself to a position where I come with no baggage. I want to make the girl I’m with the happiest. And it starts with me. But I’m depressed. So I can’t do that. I don’t know why but I get thoughts of just “going away.” Like I’m tired of being lonely. And I don’t think I can fix my problems. Sometimes I think that no one will really even notice I was gone.

Why do I get these thoughts about hurting myself?
Post Opinion