But when you pray, says He, do not speak much, as the heathen do; for they think that they shall be heard for their much speaking. As it is characteristic of the Jewish hypocrites to exhibit themselves to be gazed at when praying, so it is characteristic of the heathen, i.e. of the Gentiles, to think they are heard for their much speaking. And in reality, every kind of much speaking comes from the Gentiles, who make it their endeavour to exercise the tongue rather than to cleanse the heart.And St John Chrysostom, also commenting on this verse, says:
calling frivolousness, here, by the name ofvain repetition:as when we ask of God things unsuitable, kingdoms, and glory, and to get the better of enemies, and abundance of wealth, and in general what does not at all concern us
"It is worth discussing what is meant by the term battalogia (babbling), so that by realizing its sense we may avoid what is forbidden. It seems to me that He is castigating empty minds and crushing those who immerse themselves in vain desires. Hence He invented this strange novelty of a word in order to rebuke those foolish people who rush hither and thither in order to gratify their desires for completely useless things. For the sensible and rational word, which is concerned with useful things, is properly called a logos (word), but that which is poured forth by vain desires for empty pleasures is not a logos, but a battalogia. . . . They daydream about riches, marriages and kingdoms and big cities that are to be called by their name . . . In the same way if a man during prayer is not intent on what profits his soul, but would rather that God should fall in with the emotional uncertainties of his own mind, he is truly like a silly battalogos, who prays that God should become a willing servant of his own crazy ideas. To give an example. Someone approaches God in prayer, but failing to appreciate the exalted greatness whom he is addressing, unwittingly insulted His majesty with nothing but base petitions." (On the Lord's Prayer)Special thanks to this Catholic website that lists the Church Father's commentaries on the Lord's Prayer.
Matt 6:7 And when you pray, do not "heap up empty phrases" as the Gentiles do, for they think that they will be heard for their many words. 8 Do not be like them, for your Father knows what you need before you ask him.Matt 6:30 But if God so clothes the grass of the field, which today is alive and tomorrow is thrown into the oven, will he not much more clothe you, O you of little faith? 31 Therefore do not be anxious, saying, ‘What shall we eat?’ or ‘What shall we drink?’ or ‘What shall we wear?’ 32 For the Gentiles seek after all these things, and your heavenly Father knows that you need them all.
In both passages, the Gentiles are mentioned as having the wrong mindset, and both are within the context of needing to affirm God as a loving Father who looks out for your needs. With this in mind, it's not so much that the Gentile problem is "vain repetition" (which is irrelevant here), or even babbling incoherently (since the Gentiles didn't need to babble), but rather that the Gentiles didn't realize there was a God who loved them, just as a Father loves and looks out for His children. The "gods" within the Gentile mindset was deficient, as Yahweh was only known in shadows, compared to the divine revelation given to the Israelites. The babbling could refer to using 'magic words' or long prayers to 'cover all the bases' (e.g. "please give me food, and drink, and clothing, and heat, and shelter, and..."), or it could refer to simply praying with ignorance of Who God is (e.g. "God, if you can hear me, please help"). The Our Father thus raises the mind to heavenly things and spiritual things, which the Gentiles would have inadequate knowledge of. Even asking for our "daily bread" (Greek: "more-than-essential bread") has been interpreted by many Church Fathers to be a reference to the spiritual food of the Eucharist, not mere bread. As for forgiveness of sins, in the prior chapter Jesus spoke of the need of forgiving enemies, which Jesus says the Gentiles typically do not do, since it is seemingly irrational. And when it comes to forgiveness of sins in general, one Catholic fellow that I know said he was speaking to an atheist woman about the forgiveness of sins, and she cried because it was such a beautiful concept that she desired but forgiveness of her sins had no place in her world-view.
Obviously, there is nothing intrinsically "vain" or "babbling" or "empty" about the Rosary, but in honesty there is a risk in Christians falling into the errors that Jesus warned about, hence the reason Jesus gave us the warning. It is possible to "mindlessly repeat" any prayer, and we can all fall into this trap with even the Our Father and Hail Mary, which is why sometimes I follow the method of St Alphonus by changing the words slightly so as to not make the prayer so mechanical. In his famous book, The Secret of the Rosary, St Alphonsus Liguori has a section titled "A WAY TO CURB OUR IMAGINATION AND TO LESSEN DISTRACTIONS" during the Hail Mary whereby after we pray "blessed is the fruit of thy womb, Jesus," we add our own tag corresponding to the mystery we are currently praying (e.g. "and blessed is the fruit of thy womb, Jesus, risen from the dead. Holy Mary, Mother of God..." (link to full book here). And even when it comes to praying in a liturgical language, it is important to make an effort to learn what those words mean. But more than anything, we must not pray as if God didn't really care about us, as if He wasn't a loving Father, as if He wasn't looking out for us, as if our prayers were merely a means of getting by in this world drifting along on our own.