The purpose of the author's description of Montresor's encounter with Fortunato is to let the reader see what Fortunato had done wrong to him, and why Montresor decided to murder Fortunato. It tells us about what Fortunato is like, and why Montresor ends up killing him.