Usually, NPCs who address player characters without being prompted just initiate dialogue with whoever's closest to them (or whomever they see first? I think it might depend on the encounter). Are you sure that's not what's going on?