The Catechism states that “the Eucharist makes the Church” (CCC 1396), but also that the Eucharist is inseparable from the Word of God (cf. CCC 1346).
Because the homily is an integral part of the liturgy, it is not only an instruction, it is also an act of worship. When we read the homilies of the Fathers, we find that many of them concluded their discourse with a doxology and the word “Amen”: they understood that the purpose of the homily was not only to sanctify the people, but to glorify God. The homily is a hymn of gratitude for the magnalia Dei, which not only tells those assembled that God’s Word is fulfilled in their hearing, but praises God for this fulfillment.
–Congregation for Divine Worship and the Discipline of the Sacraments,
Homiletic Directory (2014), §4