When the goat ram into any mobs that can be aggro-ed with, it will attack the goat back. This isn't in parity with Java, which has fixed this issue in the recent pre-release.
Step to Reproduce
1. Spawn some goats (preferably using screaming goats, set all goats to screaming goats using /event entity @e born_screamer)
2. Spawn a few mobs like zombies/skeletons/spiders/iron golems
3. Let the goats attack them.
---> Mobs retaliate to the poor goats.