Animals needed sleep before they even had brains

While it is known that sleep is critical for healthy brain function, it is not known when animals started to require sleep