Muhammad al-Zarkashi, the author of a famous work on ‘uloom al-Qur’an, mentioned the following point of benefit therein:
وَعَادَةُ الْقُرْآنِ الْعَظِيمِ إِذَا ذَكَرَ أَحْكَامًا ذَكَرَ بَعْدَهَا وَعْدًا وَوَعِيدًا لِيَكُونَ ذَلِكَ بَاعِثًا عَلَى الْعَمَلِ بما سبق ثم يذكر آيات التوحيد والتنزيه لِيُعْلَمَ عِظَمُ الْآمِرِ وَالنَّاهِي . وَتَأَمَّلْ سُورَةَ الْبَقَرَةِ وَالنِّسَاءِ وَالْمَائِدَةِ وَغَيْرَهَا تَجِدْهُ كَذَلِكَ . ـ
A recurring feature of the Qur’an is that when it mentions some legislative rulings, it will then follow that up with a promise and/or a threat so that this could be an incentive to act on what was just mentioned. It will then mention verses on the subject of Allah’s sole right to be worshiped and His freedom from any faults or defects in order that the greatness of the One sending these commands and prohibitions might be known.
Consider surah al-Baqarah, al-Nisaa’, al-Maa’idah and others as well and you will find this pattern.
[al-Burhan fee al-‘Uloom al-Qur’an pg. 40]
Read more posts about al-munaasabaat, or the connections and relationships among ayaat and surahs, here.