I noticed this when i was near villagers and there was zombies nearby. The zombies were targeting the villagers at first, But then when i attacked the zombie it looked down, then targeted me, but when i hit the zombie again it went back to looking at the villagers.
Linked issues
duplicates
Comments

Duplicate of MC-69652 (the zombie de-aggro's when you punch it, then happens to find a different target and attack it instead).