I am not implying that France had some hidden motives in passing this legislature. But WW2 trauma is preventing them from making policy decisions that would benefit the society today. Here's just one very practical example of that: in the below WSJ article [0], it's claimed that the lack of ethnic statistics has contributed to housing and employment discrimination, among many other problems.
[0] https://www.washingtonpost.com/world/europe/coronavirus-fran...