This doesn't happen on single player, only realms for what I've seen. At first, villagers will claim job blocks, beds, and bells just fine. But after some time they will no longer do so, they suddenly lose their profession, even if previously traded with, lose their ability to claim beds, bells, and job stations.
Related issues
Comments


I haven't had trouble with bed claiming, but villagers without jobs won't claim a job site. Note: they aren't nitwits. They act like it, and it's hard to get a mending villager or anything like it.

Thank you for your report!
We're actually already tracking this issue under MCPE-49580 so I've requested this report be 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.
Please don't forget to use the search feature before submitting a bug to see if it has already been reported. The less time we spend linking duplicates means more time testing and confirming the bugs.
Quick Links:
📓 Issue Guidelines – 💬 Community Support Discord – 📧 Mojang Customer Support – 📖 Game Wiki
This is happening in our Realm also. Villagers start off fine. They eventually go stupid. They don't claim their bed, they loose their profession or does not change profession. They stay out at night, run in circles in the rain, and run in circles when the bell is rung. Sometimes if you destroy a bed and replace it they will claim a bed but not always. In realms there is a real issues with villagers. This started with update v1.14.20 - We have never had these issues before..