Sometimes when mobs are following/chasing an entity, they freeze for a couple of seconds. Here are the following mobs I've seen it happen to:
Ravager - Polar Bear - Wither Skeleton - Drowned - Iron Golem - Wolf - Panda - Zombified Piglin - Any Arthropod - Piglin - Hoglin - Zoglin - and any land animal following players for food or breeding.
Thank you for your report!
However, this issue is Incomplete.
Your report does not contain enough information. As such, we're unable to understand or reproduce the problem. My guess is that you are stepping outside the mobs' follow_range.
You are welcome to create a new ticket about your issue with more detailed information.
However, please review the Issue Guidelines before writing a new bug report.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki