How are poetry and music related?

So, I was wondering about the similarities between music and poetry- they both have meter, rhythm, and necessarily appeal to the auditory senses. They are both ways of communicating ideas purely through sounds- whether by pure music, or sung words, or merely poetic recitation. So how are they related? It seems obvious that we would not call them the same thing, so how are they different?