Why do a woodlice like to be under a rock?

Invertebrates live under rocks as to avoid being eaten by predators like birds and mice.