Why do spiders spin their webs?

No one taught them how to knit.