Because car insurance isn't employment, is separately regulated, and does not exclude gender from permissible inputs into actuarial calculations.
Specifically, compared to perfect allocation of costs, it's a small subsidy from people outside of opposite-sex couples to opposite-sex couples, whereas not having gender rating with otherwise status quo policies is a large subsidy from women not in opposite-sex couples to men not in opposite-sex couples.
Under status quo policies, opposite sex couples are in practice fairly free to gender-optimize insurance pricing by putting the less expensive to insure driver as primary on the more expensive to insure vehicle, regardless of actual primary driver.
So that’s ok but for some reason if it were a particular race they wouldn’t think to charge people More by race so honestly I don’t know how to answer your question in a logically consistent manner.
Not completely sure, but I think it is.
Saying that Law X exists answers the literal question, but not the implied actual question.
But of course, there could be laws that prohibit linking vehicle insurance cost to gender.
My solution, when I've been married, has been having my wife get insurance, and add me as a driver. But that doesn't matter so much now that I'm older.
Edit: I do agree that discrimination by gender is fundamentally unethical.
https://www.dailymail.co.uk/news/article-6007501/Canadian-le...