Just to pile on -- just punning. Dogs are very social and pups grow up in puppy piles. They want to be near you.
We learned this the hard way with our second Basenji. The first night we went to the bedroom and left him in what we thought was a very comfortable situation. He didn't think so and made us very aware of how he felt about all this.
The second night we put him in a crate in the bedroom and he slept through the night.
The next morning we looked at each other and said: "How dumb were we?"