What is the principal role of a metrical foot such as fāʿilun in prosody?

Division of Surahs into Verses, Qur’anic Rhythm, and Verse Endings