When a villager is stood on top of a bed (not sleeping in it) their AI seems to get confused and stops them from walking off the bed so they are just stood there for eternity until a player pushes them off. I noticed this when making an iron farm.
Hope this helps, thanks.
Related issues
Comments


same here. every once in a while ill get lucky and and a villager lands on the bed he wants but they all dont move. once there on a bed they stay there

Thank you for your report!
We're already tracking this issue at MCPE-45560, so I will forward 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.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
I have the same problem, about 80 percent of villagers do not sleep at night, as they are stuck on top of a bed.