This behavior is called "chin resting" and allows the zebras to rest while also keeping an eye out in all directions for predators.