I didn’t know that resting triggered NPCs until someone told me. I thought it was time of day or something else that I hadn’t thought about. There’s literally no way to tell that resting is what makes the NPC appear, or any indication that that’s a universal mechanic.