Autism has nothing to do with. People don’t generally realize that others may not understand what they know, what they’ve experienced etc…
It’s a case of (nicely put) one’s reality is not anyone else’s. People generally react based on their own reality, their experience, and on what they would do. They forget that their reality doesn’t necessarily, and often doesn’t, apply to the reality of others.
It behooves people, if they wish to understand another, to put themselves in that other’s shoes. It can be really hard to do that when they’ve had zero relatable experiences and certainly impossible to do when their first reaction is to be judgmental, opinionated and otherwise closed off to even trying.