One purpose, a figure of speech is to

add depth and vividness to language by using imaginative and expressive techniques. It helps to engage the reader or listener and evoke emotions or create a visual image in their minds. Additionally, figures of speech can be used to emphasize a point, create humor, convey complex ideas, or make language more memorable and enjoyable.