Mobs in general disappear when they shouldn't. I could name a horse, put it in a stable and it will still disappear. That's just one example of how broken mob despawning is. And Efficiency Enchantment is especially broken, at least, with mobile controls, and is extremely broken, in general (all of bedrock edition), on realms. It has been like this for too long.