Research on jellyfish and sea anemones reveals that even brainless animals exhibit sleep-like states, suggesting sleep evolved as an ancient, fundamental mechanism for cellular repair, particularly in neurons, to counter DNA damage accumulated during wakefulness.
Focus areas by different sources:

Sleep is a universal biological state that allows all animals, from mammals to amphibians, fish and even insects, to restore their energy and consolidate knowledge that can contribute to their survival. Neuroscientists and zoologists have been investigating the biological underpinnings of sleep and its vital functions for centuries, more recently by measuring the brain activity of animals or people while they are asleep.
Aby spać, nie trzeba mieć mózgu. Najnowsze badania pokazują, że nawet koralowce, organizmy pozbawione neuronów, zapadają w stan przypominający sen. Odpoczynek pozwala im naprawiać uszkodzenia DNA i utrzymać delikatną równowagę biologiczną.
كشفت دراسة جديدة أن قناديل البحر وشقائق النعمان البحرية تنام رغم عدم امتلاكها دماغا، ويساعد النوم هذه الحيوانات على إصلاح تلف الحمض النووي وحماية خلاياها العصبية.