Why pray to Mary? She was a sinner and in need of salvation through Jesus, just like the rest of us.
Mary is dead. She doesn’t need our prayers.
The words of the "Hail Mary" are based on the angel's greeting to Mary, as recorded in the Gospel of Luke. The angel was conveying God's message to Mary.
So Catholics are only affirming what God said.