Having kids and retiring usually do not happen at the same time.
>a few of my friends, who were settling in France for personal reasons
So they're not French. Your first comment is definitely wrong then.
I believe they were referencing the circulaire Guéant[0], which comes from the previous government, wronged many skilled workers & French companies as well -- it sets a 'national preference' for hiring.