Its one of those things where you have to wonder why.
There is no why. It just is.
It's like a millionaire winning the lottery. Random number based draws result in random winners, who are not selected based on any criteria other than pure chance.
In almost every life there will be some rain before it is over. A tragic death, infertitlity, abaondonment, the onset of mental illness, awful diseases; conditions;illnesses;accidents changing lives dramtically, finantial issues so grave people feel crushed beneath them for their adult lifetime..and so on and so on and so on.
Very few people get an almost charmed life where nothing goes horribly wrong, there is no loss, grinding disappointment or being in the wrong place at the wrong time.
The rain can feel like a case of quasi deliberate water torture. Making an umbrella to help yourself cope and move forward with any solutions to hand is better rather than railing at the sky yelling "why me and not that ratbag"?
But we are human, so some shouting at the sky while pointing out another "undeserving" person who seemingly (and most unfairly) being better off is a pretty normal part of the process.
OP I'm really sorry you got this news. I hope at the very least you find a way to have the family you want via some other route.