Imagine needing to sleep while still remembering to surface for air.
Dolphins can experience a form of sleep known as unihemispheric slow-wave sleep.
The exact sleeping behavior varies according to species and https://bbs.mofang.com.tw/home.php?mod=space&uid=2698729