Minecraft wiki entry for Village_mechanics, associated text: Once a villager has claimed a bed, that bed is registered as a house in the village. The villager remembers the position of the claimed bed, even when underground. In the evening, villagers return to their houses (beds). However, if a villager cannot reach their bed and then loses ownership of it, other villagers can claim it. In this case the previous bed owner forgets the house location and searches for another unclaimed bed.