There is a stage, fairly early on, in a typical kid's life where they get very shy about strangers, and hide behind their parents whenever a stranger is there. It's not immediate, that's true, but after they have gotten old enough to know which adults are familiar, anyone who isn't seems to become frightening (until they learn to get over that, which in most cases they do).