Basically, most passive mobs have a behavior that makes them walk for a bit and then turn their head, and when they turn their heads, their bodies do to. For some reason this behavior of randomly looking around does not apply to villagers, ocelots, stray cats and rabbits.
Thank you for your report!
However, this issue is Invalid.
The described behavior is consistent between Bedrock Edition and Java Edition. This means you have posted a feature request or a suggestion. This site is for bug reports only. For suggestions, please visit Minecraft Suggestions on Reddit or visit the Feedback website.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki