I dunno what it is but I imagine it's to reduce the amount of sensory feedback they get while sleeping. They're in a safe place so they don't have to be on high alert while resting.
(sora will insist on sleeping under the covers with me if he feels bad. with my arm around him. security is a whole ass human to fight off any predators)