Attractiveness is another axis of discrimination which is frequently orthogonal to job performance (unless we're talking about jobs as a model, etc).
If there were a group of basketball players with blue eyes (that were the best in the world), wouldn't someone see the huge money potential and create a team full of blue-eyes and win the title/cup/trophy?
Bias is stronger than capitalism. Some people willingly give up money to not serve gay people, for example.
Homo oeconomicus is a myth.
However setting up shop and not serving cakes to a vast majority of your customers who are a minority is just asking for bankruptcy.
I also find it really hard to believe that there isn't one greedy capitalist that will take advantage of this situation. e.g. Huge talent shortage of tech workers. Assume that there is a cohort minority who are probably price themselves cheaper (becz they are having it harder to find a job), then there's not one person who will seize this opportunity in America?
Some people don't get opportunities because of their skin color, their name or their religion.
It's about becoming a NBA player if you can't play basketball