One purpose of a figure of speech is to

make language more expressive, vivid, or impactful by using creative and imaginative language. It can help to convey complex ideas or emotions in a more engaging and memorable way. Additionally, figures of speech can add depth and richness to writing and enhance the overall tone and style of a piece of communication.