The reason is that to avoid redundancy, humans refer to the same entity differently within the sentence, preferring titles, nicknames and pronouns.
when a similar-looking named entities appear in the same sentence, they are actually likely to refer to different entities.