Using discriminating factors that are simply correlated rather than causal is unfair as it penalises some people within a given profiled group for no good reason. This may not be due to inherent racism, but merely due to not properly understanding the statistics. Or not due to inherent racism now but because of lazy "it has always been done this way" reasoning. It may in part be due to racism, of course, as people are less likely to question results that agree with their worldview.
Identifying the correct causal factors and using the as discriminators is fair, and can be demonstrated to be better for the business too by allowing lower prices for some groups aiding competitiveness, but it can be harder work leading to the less effective and less fair option being used - saving effort now at the expense of being fair (and some potential longer-term business benefits).