Why do people sleep on beds?

<p>why not add some walls to it? Or just surround yourself with something solid so you wouldn't roll off?</p>