Exactamundo. Prejudice (positive or negative) is the result of experience and man’s predilection of playing the odds in order to help him better survives.
Animals do exactly the same thing.
Trying to eradicate that survival instinct by passing laws is a fool’s game and will only make the situation worse.
Sometimes it is the result of experience. Sometimes it is experience applied too broadly. Sometimes it is the results of inapplicable anecdotes passed on and misapplied.