Epilogue means a section at the end of a book that typically wraps up the story or provides insight into what happened after the conclusion of the story. It is also a section at the end of a play or speech.
Epilogues can be used to:
Provide closure to a story: Often, epilogues can be used in order to provide closure to a story. They can resolve certain questions or mysteries that were established in the narrative, or even provide a glimpse into the future of the characters or setting.
Provide insight: Epilogues can also offer insight into a story. They can provide deeper analysis and background information which may have been unclear during the main story. It may also be used as a tool to further explore the themes of the story or to provide greater context for the decisions or events of the characters.
Revisit characters: Sometimes, epilogues can be used to revisit the characters of the story. This is often used when a character has gone through a major transformation during the narrative, or if a particular character arc needed to be further explored.
Sources:
https://www.thewritersforge.com/what-is-an-epilogue/
https://literarydevices.net/epilogue/