Racism is often used as a way to blame one's own personal failings on an uncontrollable external force, therefore removing responsibility for said failings from the individual.

Brian