Answer:
An ant doesn't have eyelids for its compound eyes, but it does have periods of rest lasting several minutes, where its brain and biological functions slow down and it stops moving. As workers have to respond to the colony needs, it could be seen as a way of preserving resources ( food,etc.) each individual rests as necessary, waking as when needed by the colony. The whole colony does not go to 'sleep' at the same time.