Well, people can be denied jobs for almost every reason (except a couple explicitly listed taboo reasons i.e. protected classes), so if any employer believes that defaulting on your debt correlates with e.g. trustworthiness of a candidate, they are free to use credit rating as (dis)qualifying criteria - no matter if that belief is true or not.
Sure, but just because something is legally allowed, it doesn't mean we're not permitted to argue that it's a bad practice.
Some places don't legally allow this, so we should think about why: because it's abused, perhaps? Because it furthers discrimination?
The list of current protected classes isn't some holy thing; we can and should add to things that companies aren't permitted to discriminate based on, when those things are found to be harmful to people and society.