I thought like this when I was kid. I had this fear that inanimate objects like the fridge and my stuffed animals would one day rise up and take over the earth, only sparing the humans that were nice to them. So, whenever I bumbed into a table or slammed the fridge door to hard, I would apologize (or say thank you in other situations), hopefully ensuring my safety in the imminent inanimate item revolution...
Shit was crazy back when I was 8 years old. I did eventually grow out of that thinking but I do recall it every now and then, and end up apologizing for the same stuff if I feel like it.