That's because when you're not on the same sub-server as your pet it counts your pet as essentially wild (blue) allowing it to hit anything, blue or otherwise. until you get back to the same sub-server.
If your pet has any AoE skills/spells, they're going off while you're not around causing you to get flagged because it hits a blue player or npc that's nearby.