Why is affinity bias a problem?

Affinity bias is a problem because favoring people who are similar to us has the inevitable side effect of excluding those who act or look different.

For example, a manager might spend more time mentoring someone on their team that reminds them of their younger self. This also means that other equally capable (or even more capable) employees have not been given the same opportunity.