قَدِمَ صَدِيقُكَ خَالِدٌ
Your friend Khālid arrived.
«Your friend» identifies someone by relationship, but the listener may have many friends. «Khālid» specifies which one has arrived. The second noun therefore serves clarification.
The proper name is not inherently clearer in every conversation. If the hearer does not recognize Khālid, the intended explanatory benefit may fail. The rhetorical effect depends on what the hearer already knows.