Okay so I successfully duplicated this bug for a few times. If you shut down the game when you are seeing a bunch of villagers, and perhaps right before some "save" functions are called, the villagers will disappear when you re-enter the game. Is this possibly an exception-handler bug or a garbage collector bug?
This phenomenon is especially common in a world where cheating is not enabled. Every time in survival mode I fly to a new village with Elytra, see some villagers, and shut down the game (either immediately or not), the villagers disappear. But in creative mode, such chance is much smaller.
This is a real issue because now if you don't press "save and exit" and the game reloads, then the villagers and animals will disappear. I remember the first time when all my villagers disappear is because I was changing the brightness, and when I came back to the game, it auto-reloaded, and all villagers disappeared.
In sum, the bug is: if you don't press "save and exit" and the game reloads for some reason, you will lose the villagers (in a cheating-disabled world).
Related issues
Comments


Thank you for your report!
We're tracking this issue in MCPE-21416, so this ticket is being resolved and linked 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
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
If you don't press "Save & Quit" you are not giving the game a chance to save the latest state of everything in the world.