The issue is that the pattern matching reinforces the problem based on race when race is not the cause. There are lots of historical reasons someone could be be a bad credit risk for example, but it isn’t because they’re black or some other race.
You want the algorithm to account for cause not correlated patterns that reinforce racial divisions and then perpetuate the inequality.