The rhetorical device and/or Greek figure used is rhyme, where you duplicate a sound in words, or parts of words.
Another rhetorical device and/or Greek figure used is the repetition of a word or phrase word for word, in successive sequence.
Also, ‘socks and shoes’ is not a grammatically correct verb phrase. I’m sure you noticed that. But, my daughter, who was lollygagging, understood full well it meant ‘put on your socks and shoes’.