Saying the Our Father in the Rosary -- to GOD is praying. The Hail Marys are not prayers TO Mother Mary. She can't grant our desires -- only God can.
One prays, also for Intercession.
That is the Realm of All of the Saints. Canon Law refers to that in several instances.