I don’t think they hate black and trans people but whatever warped version of black and trans people that they have been told. There have been studies that show having a gay friend in real life make people more accepting and I assume that similar things could be shown for trans and black people.