In poem "Courage", the type of figurative language used in lines 2 and 3 is comparison and hyperbole, characterized by the line:
It is used when the author wants to convey an idea of intensity, using exaggerated expressions intentionally to generate a certain effect.
Therefore, the author's intention in poetry, when comparing the first step of a child with the ability of an earthquake, was to create greater expressiveness about the uniqueness of that moment.
There is also the use of hyperbole to generate the desired intensity and emotion, since an earthquake is a seismic shock capable of having a great impact, just as the fact that a child starts to walk also has a great impact on their development.
Find out more about comparision here:
https://brainly.com/question/25261401