Have been ghosted in the past, by someone I went to uni with years ago now. She stayed single and worked full-time, I went a different path by having a family and putting my career on hold. It all fizzled out at that point. Yep, it's hurtful so I sympathise with others who are disappointed when friendships don't last forever. I get it. That is why I prefer not to get involved anymore. Can't get hurt that way again.
As others have said, you had a perfectly normal experience. Which, absolutely, is also sad and disconcerting I don't deny those feelings for a moment and have felt them myself on more than one occasion but which happens to virtually everyone at some point.
I've actually been on both sides of your situation I didn't plan to have children and had an absorbing career, so lost some friends when they 'vanished' into parenthood though not all -- and when I decided to have a child, just short of 40, some friends couldn't handle it at all, because I'd moved categories in their heads, or because the idea of me having a child caused them pain.
Two very close friends (an apparently contentedly childfree couple in their 50s, but the man in particular was one of my closest friends in the world), faded away, and only gradually did I realise that, long before I'd known either of them, they'd tried to have a child, early IVF failed multiple times, and they had almost split up over whether or not to adopt.
Another friend, also very close I'd stayed at her house and at her parents' numerous times over the years simply never contacted me again after I told her I was pregnant over coffee, where she seemed very happy for me. Eventually I stopped just leaving her messages. Nine years on we're tentatively back in contact, though we've never discussed the split, which I think may also have been down to her own feelings about not having had children -- was too old when she met her partner, though this had been years earlier. But I value her friendship, even on the terms we're on now.
I think the most hurtful one, though, was a friend made when we were both postgraduate students at the same institution, saw one another daily for two years, did social things together, confided a lot in one another etc. Then he got a fellowship at a different college less than a mile away, and simply never got in touch again. What had been an important friendship for me had for him been purely a friendship of circumstance for him, and when I eventually ran into him a year after I'd stopped leaving him messages, he simply didn't understand why we couldn't just go out for a drink as if we'd just seen one another the day before.
I was hurt by all of these I had a dream about the couple the other night, and that all happened ten years ago! but they're no reason to give up on friendships entirely, any more than individual bad experiences are a reason to give up on something life-enhancing.