Of course most biases is something we learn. Some of them can certainly be harmful if we are out of our ordinary environment, like in your example. Or if bias is based on a false assumption. Evolution simply roots out those individuals who are unable to build proper biases :)