I recently discovered Tutanota email service and it seems like a great option for people worried about privacy but I don’t know how to be sure.
Sometimes it’s not planned, people just have sex and get pregnant. When that happens they will have a child (some opt for an abortion but I don’t know the statistics).
But even if that’s the only reason, the child/future-adult life can still be a good one. They can also make the parents/family happier simply by existing.
So, sometimes the reason is “no reason, but it happens”.
And specifically about you, even if your life is miserable right now it can (and a lot of times do) get better. I’m not guaranteeing it will, but there’s a big chance, so hang in there.