The key is to create a similar sleeping experience for the pet. Dogs may be attracted to humans' beds, especially if they're elevated, because they are comfortable and strategically in a good position, letting dogs keep watch over their surroundings, Dr. Siracusa said.