Most passive mobs don't wander more than about 32 blocks from the player. This is intended per MC-47533. However frogs are an exception to this rule. This causes several issues. You can test this by going into spectator mode near a frog and a cow. Notice the frog moves but the cow doesn't.
Note: If you use /summon to test this (or probably any method of spawning), the game allows the mob to move for a little bit before the rule applies, so like cows that were just spawned will move for a second before staying still
Linked issues
Comments

Thank you for your report!
We're resolving and linking this ticket forward as a duplicate of MC-263152, as that ticket contains more detailed information and/or has already been triaged by Mojang.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.