4 cows were following me because I had wheat in my off hand. When the cows jumped into the water, one of the cows went towards west. (I know that because I pressed F3 and saw "facing west".)
Here's a video of what happened (skip to 1:19): https://youtu.be/TyiiEEE3vsM
Hello; I was indeed able to reproduce this behavior, however, we're currently tracking this issue at MC-248099. This problem is occurring because mobs' pathfinding breaks when the mob falls into water. See MC-248099 for more details.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki