In parshas Shemini it lists the kosher and non-kosher animals and the signs we use to tell them apart. All bugs, caterpillars, centipedes etc that crawl on the ground are not kosher. We made caterpillars to represent the non-kosher bugs.
שמיני יא:מא
Shemini 11:41