Question: do villagers need to sleep to trade?
Answer: Villager Trade Restocking. Do villagers need to sleep to restock their trades. Supposedly no, a workstation is all that's required. But since they won't restock during the night anyways, might as well let them sleep, if only as a reminder to players to go sleep themselves if they want the villager to restock.