You're confused, I think.
Sexist is a state of being. Someone who is sexist/racist tends to pigeonhole people based on these attributes, gender/race, usually through negative generalisation, though not even necessarily negative. You may assume all blacks can run super fast, which is a racist...