We would call this anaphora, a type of rhetoric in discourse.
Anaphora is the repetition of words at the beginning of clauses:
Part intimate diary, part prose poetry, part descriptive
narrative
(wiki)
Epistrophe is the opposite where there is repetition at the end of clauses:
When everybody talks during the lesson, The rebel does’ n say a word.
When nobody talks during the lesson
(literarydevices.net)
Anaphoric references are ideas which is referred from the beginning of the text:
For example:
‘I went out with Jo on Sunday. She looked awful.'
(teachingenglish)
The proper noun 'Jo' is introduced at the beginning, before her appearance is described. We call these anaphoric references.
Cataphoric references are "phrases/ideas/people" which are referred later in the text, causing the reader to look back:
'When he arrived, John noticed that the door was open'.
(teachingenglish)
In this case the pronoun 'he' is used at the beginning and the proper noun 'John' is used later. Also the fact that John noticing the door was open later, makes the reader look back to the subordinate clause (When "he" arrived). The cataphoric reference is used to show that they're not different people, but the same person.