If you read Deuteronomy 32.1-43 you find the message of the whole book drawn together in poetic form.
Poetry conveys reality in a way that stirs our emotions and warms our hearts. Truth is set on fire in song.
No wonder Paul exhorts believers to sing psalms and hymns and spiritual songs as we exhort each other (Colossians 3.16). This song of Moses was to be memorised and repeated, to live ‘unforgotten in the mouths of their offspring’ (31.21).