Usually it's gravid females, but sometimes other animals will do this too. I've seen snakes going into shed lay inverted as well.