This happened with my cows and my skeleton farm.
I was feeding the cows and then when I left the pen they all where in the corner with there head up as if I was still there feeding them. I was on the other side and didn’t have wheat in my hand. My skeletons did something similar where they made noise and took damage but did not move instead just paused in the state they where in. They did still die.
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue at MCPE-71243, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki