Dogs like to mark their territory. If you let your dog spend time on the bed, it will eventually believe the place is theirs. And sure enough, they will want to mark it with their scent. Medical conditions, anxiety, and nervousness also cause this issue.