So I've played Minecraft a lot and I noticed that iron golems run from vindicators and evokers when they aren't in a confined area. So what if they run from those pillagers because they saw their brethren fall to the pillagers and/or be taken away to be experimented on and didn't want to share their fate?
Just a theory and if you have anything to add go ahead.