rhyme
Rhyme is a literary element which consists in using words that produce the same or similar sounds.
The words hear and ear are an example of perfect, or full, rhyme. This literary device creates a musical effect, and that's why the author used it in his piece of writing.