I think it's often innocent but self-absorbed -- people want to use their companion animals as a way of expressing themselves. And dogs are often so long-suffering, they'll act happy at the slightest attention, that people probably actually don't stop to think that the animals may not enjoy it.
RE: PSA: On Halloween, please remember your pets aren't props or accessories