People like dogs, and your dog at least appears to like you back. If they don't really like us, their behavior is enough of a facsimile that it doesn't even matter.
I spend more time with my dog than anyone except my wife and kids; and it is pretty close to the amount I spend with my teenagers given that they have their own interests and activities. With that much time together, there is just naturally a bond.