Answer:
For the same purpose. (FYI, a metaphor is an analogy)
Explanation:
An analogy, as opposed to a metaphor, employs recognizable physical language and imagery to clarify a notion. The use of recognizable phrases aids in conveying the writer's point. Analogies function effectively in literature to illustrate a topic without distracting the reader from the plot.