Why bells ring at the consecration
A custom of the Mass
A bell is rung shortly before the consecration and again as the priest shows the Host and then the Chalice to the people. The custom grew in the Middle Ages, when the consecration was quiet, distant, and often hidden behind screens: the bell told the whole church — look up, this is the moment. It still works that way, gathering wandering attention from every corner of the building into one point.
Source: GIRM 150