The free market usually fails to discriminate, because people are more greedy than they are bigots. This is why government help is enlisted to enforce bigotry - often in the form of required licensing, limiting the number of people entering a career, etc.