I was adventuring with a friend and their foxhound when we came across a village. An iron golem immediately went after said foxhound and murdered it in cold blood. Why would a protector kill a pet?
Vazkii commented
They count as hostile mobs. That's just how it be.