Sometimes, mobs get stuck inside the underwater Kelps, when those are broken, the mob floats back to the surface.
Steps to reproduce:
Swim underwater
Search around the Kelp
When you find a mob seemingly standing on the ground, break the Kelp around it
I have had the same problem.