Answer:
Both similes and metaphors are a poetic device because authors can be seen using them while writing their poem to give the reader a deeper understanding of the character and the setting. Metaphor is a figure of speech that talks about one this but refers to another. On the other hand, a simile is a figure of speech that compares two things together. Usually using the work "like" or "as".
Hoped it helped! Have a great day!