Jesus delivers five different sermons of this sort, just like the five books of Torah ... as martyrs to their prophetic calling. Read more on the Gospel of Matthew in this essay by Marilyn ...
The structuring of Jesus' teaching into five discourses imitates the five books of Moses, the Torah. Therefore some scholars have proposed that Matthew presents Jesus as a New Moses giving a New Law.