I'm not French so their ban doesn't apply to me. Doesn't apply to you either. I can't speak to why they banned the tests. But yes, I was aware that they had. I have a higher confidence that France will repeal that law if it doesn't do what was intended or causes too much harm than I do my own country's ability to repeal bad laws.
In the case of India, I can speculate. Their cultural problem with rape is likely a huge factor. Children are inevitably going to result from rapes. Women are less likely to disclose in India because they are ruined when they do. Husbands will set them aside. It's a conundrum. You can't have rape culture be normalized on the one hand and think men will not have to pick up the slack of the inevitable results of that in some way. Is that fair to the man? No, but rape culture isn't fair either. It's horrible. You don't get both. If, as a society, you choose one, you're choosing the fallout of it to. In all the ways. This is one.