My theory about the uncanny valley

Some people say its because we needed to watch out for something that looked human but wasn’t human i think it might be because of when Homo Erectus saw Neanderthals or something like that.