I was playing realms with my friend when he found a pillager outpost. When he came back I went to trade with the villagers but then suddenly 3 of my villagers disappeared. We tried to back it up but the villagers where still gone. Also my villagers were in a highly secured well lit room.
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. Please note that general game issues should be reported in the MCPE project unless they are related to managing realms or only occur there.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki