175 From these multiple forms of piety, the inspiration and action of the Holy Spirit cannot be absent. Their purpose is, in various ways, to attract and direct our souls to God, purifying them from their sins, encouraging them to practice virtue and, finally, stimulating them to advance along the path of sincere piety by accustoming them to meditate on the eternal truths and disposing them better to contemplate the mysteries of the human and divine natures of Christ. Besides, since they develop a deeper spiritual life of the faithful, they prepare them to take part in sacred public functions with greater fruit, and they lessen the danger of liturgical prayers becoming an empty ritualism.
Source: Mediator Dei (Vatican.va)