Autistic people may be at a greater risk to become used to some sense of "how things are supposed to work", which can include overreacting to the unexpected or unknown. I know that I like thinking in boxes and was accordingly susceptible to mindsets that put things in clean boxes (male and female, faithful and sinner, and so on) and it took conscious deprogramming to shake off those bigoted views.
Basically, certain autistic traits may render us more vulnerable to indoctrination into mindsets that align with the way our minds work. That vulnerability isn't universal nor unique to autistic people, of course.