Not that it's wrong though. Imagine if you said the same thing about fire insurance. That it was unfair that they were allowed to set higher premiums on wooden buildings. Or a better analogy, if the fire insurance companies wanted to come into the building and inspect the materials, foundation, the wiring, if the fire alarms worked, etc.
Just because it's "not allowed" doesn't mean it doesn't currently and won't in the future happen. They'll always find a way.
By having greater knowledge about your prospective customer, you can better anticipate the probability and magnitude of any potential claim, and thereby adjust premiums accordingly, or simply refuse insurance as the prospect is likely to be either unprofitable or an active drain to the insurer.
So - this is absolutely aligned with the interests of the insurance industry - not of the consumer, no, but insurance never was aligned with their interests - were it, it would not exist.
And they'll call it "fair", because that word does not mean what it used to, at all. Fair use. Fair treatment.
Fair division of the equity of your being between the vultures.