The habit of sticking one’s leg out of the bed to fall asleep has a scientific explanation. When it comes…