In older poetry, rhyme, i.e. the periodicity of verse terminations, had little or no importance.
What mattered was the periodicity of rhythm, i.e. the periodicity of intonation patterns, stress patterns and length patterns, similarly as for music.