There is a bug that when you touch the edge of a block while you are swimming and do the swim or run animation, it exceeds and remains a bug when you get out of the water and make the player stay with the animation attached to the block as if it were swimming outside out of the water or flying
Linked issues
Attachments
Comments 1

Thank you for your report!
We're actually already tracking this issue at MCPE-48958, 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:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki