Moths avoid smell of caterpillar feces during oviposition https://www.mpg.de/13970673/1008-choe-025591-when-laying-their-eggs-tobacco-hawkmoths-avoid-plants-that-smell-of-caterpillar-feces
When laying their eggs, tobacco hawkmoths avoid plants that smell of caterpillar feces. An olfactory co-receptor allows moths to avoid intraspecific competition.
have already been attacked by caterpillars and therefore lay their eggs somewhere else