Pets seem to work the same way as sims, they'll choose a place to sleep that's close to someone else. My dogs would often just lay down on the bedroom floor next to a bed instead of a pet bed in an empty room.
Not sure if comfort rating is any major factor, but it seems the presence of another sim is.