I have often noticed how primate groups in their entirety enter a similar mood. All of a sudden, all of them are playful, hopping around. Or all of them are grumpy. Or all of them are sleepy and settle down. In such cases, the mood contagion serves the function of synchronizing activities.
Frans de Waal