Matthew’s gospel is not written in chronological order. Rather, the Holy Spirit instructs him to write in a way that communicates truths from Jesus life and teaching to his Jewish brethren. In this case, the truth being communicated is that rejection and death are sometimes part of the God’s patient plan to save sinners in this world. Not only was Jesus rejected by those closest to Him at the end of chapter 13, but John the Baptist gave his life for speaking truth boldly. Rejection and death are not signs of failure in God’s economy.