Researchers believe that the practice of sleeping through the whole night didn’t really take hold until just a few hundred years ago.