What is the purpose of anaphora? I know what it is, but what does it do to a book/novel/play?
The main reason an author/playwright uses anaphora is for emphasis. When the character repeats a certain phrase, that draws the reader's attention to that phrase and helps us realize that it is important. So anaphora draws the reader's attention to something that the author thought was important.