In my experience, generally speaking its either down to knowledge or trust. The PCs dont know the NPC well enough to divulge potentially important information, the PCs dont trust the NPC with said information, the players dont know if the information will be useful, the players dont trust the DM to not shaft them, etc etc.