I don't think those are the reasons, but rather the negative side effects. I think the reason we stereotype is because historically is has been extremely advantageous, biologically/sociologically speaking, to be able to predict certains things based on someone's appearance or background.