Here's why:
* Onomatopoeia is the use of words that imitate the sounds they describe.
* "Click-clack" is a direct imitation of the sound of horse hooves hitting the ground.
This creates a vivid and memorable image for the reader, adding to the poem's rhythm and rhythm.