Because being black is an inherent trait outside of someone's control. Choosing to be an Uber driver is a person's active choice, and everyone has a fingerprint. So you're not forced to do something you don't want to do, and you're not being discriminated against because of something you cannot control.
This is an interesting principle, and it applies in this case. But it has other interesting conclusions.
For instance, your principle seems to allow discrimination against Jews/Muslims/people who engage in homosexual acts/promiscuous women/etc. And it seems to bar discrimination against, e.g., the short and ugly (at least if being ugly is not caused by being fat).
Do you endorse these conclusions? If not, then this clearly can't be your motivating principle.
The position I stated in my post above I do hold and do endorse as a good philosophy for life. However, the conclusions you have drawn do not follow logically from what I stated. All I said was that one should not discriminate based on innate attributes. I said nothing about other forms of discrimination. You have made the assumption that the inverse of my statement is true: that because I denounce discrimination based on attributes outside of people's control that I must support discrimination based on attributes within their control. This is not a logical conclusion of my statement and is not true.
Generally speaking, I reject discrimination against people based on any attributes, within or without their control, except those attributes which directly pertain to the subject in question. So, for example, in a job situation, ideally, the only attributes we should be using to discriminate between candidates are their experience, knowledge, and ability to fulfill the duties of the position. If the job requires lifting heavy weights, discriminating upon your ability to lift heavy weights is fine. Discriminating based on sex (maybe justified because statistically most women are not strong enough to perform the duties) is not fine, because it is an indirect attribute. If this women meets the requirements it is irrelevant what other women can or cannot do.
In this case with Uber and Lyft the city/state has the right (one could argue duty) to take steps to ensure the trustworthiness/safety of drivers operating commercial transportation services within its jurisdiction. Race does not say anything about the trustworthiness or criminal nature of a specific person. Even if, hypothetically, you assume that statistically one race is more prone to violence than another that does not speak directly about this candidate. It is an indirect measure like the example of sex above. An accurate background check, however, can shed light on facts in a person's past that are directly relevant to that question.
You have made the assumption that the inverse of my statement is true: that because I denounce discrimination based on attributes outside of people's control that I must support discrimination...
I made no such assumption. I merely pointed out that your principle doesn't prohibit such things.
In this case with Uber and Lyft the city/state has the right (one could argue duty) to take steps to ensure the trustworthiness/safety of drivers...Even if, hypothetically, you assume that statistically one race is more prone to violence than another that does not speak directly about this candidate.
Neither does past criminal history. Some criminals are reformed and will not commit crimes. Both past criminal history and race are statistical predictors of future criminal behavior. So are various things under one's control like the neighborhood they live in, their friends, etc.
It's a fact, and one I haven't fully come to grips with philosophically, that base rates matter. I.e., you'll do a better job predicting violence if you take race into account [1]. Actually using it makes me uncomfortable, but not using it is also burying our heads in the sand. From a moral philosophy perspective I'm simply confused.