It provides them with a reliable place to lay their head and sense safety. This desire to sleep with you is likely a natural instinct to stay close for safety and secureness. You being the head of household or of certain authority to your dog, they feel the most secure in your presence.