Why do snails pull their eyes into their head when we touch them?

Beacuase just like humans it hurts the snails eyes Beacause your hands have dirt on them and snails dont blink so it hurts the eye