Discrimination changes access, treatment or pay because of group membership rather than relevant job characteristics. Raw earnings gaps mix multiple mechanisms and cannot by themselves identify discrimination.
Both examples are hypothetical. Each dot in the experiment represents 10 applications. Randomizing the cue with otherwise equivalent applications can identify a callback response to that cue; it does not identify all causes of the raw wage gap or lifetime earnings differences.