It curls up in a ball to protect itself from enemy attacks. It also curls up to prevent heatstroke during the daytime when temperatures rise sharply.
In an attempt to hide itself, it will run around at top speed to kick up a blinding dust storm.