I think being good in your field means not only doing good research, but also being a leader for future generations, providing important support for your peers, and giving good advice to policy makers.
I think people who are racist, homophobic, or sexist are likely to also be bad at these skills.
I'll concede that could be theoretically untrue, but I'm not aware of it.