Most of them feel comfortable being near the rest of the family and that includes at nighttime.
Humans, too, often enjoy having their canine companions with them while they sleep.
Many people have their dogs in their room on a dog bed, in a crate or on the floor by the bed.
Others allow them the foot of the bed.