Why can’t mother sleep?

Hello, I am confused about why can’t a mother sleep keeping the baby at her side (if he/she is not crying) and keeping the lights on? The baby cannot change sides so he/she ll just keep on lying.

M searching for an answer but not satisfied with any.