Your brain at night doesn't know the law. It has no desire but to keep you warm and fuzzy and at rest in its normal sleeping position. That's laying down. Whether or not it's on your bed, someone else's, or the floor of a jail cell is up to your conscious behavior.