Given that small arthropods such as insects and spiders may carry diseases or be venomous, it does not seem like a big stretch to assume that people have simply been teaching their kids (even if unconsciously) to avoid them for many thousands of years.