Your dog doesn't like their bed.
Another reason why your dog may sleep with you is because they don't like or feel comfortable in their own bed.
If this is the case, it is likely that they will try find anywhere else to sleep, like your bed or the sofa.