Along with all else.
Even Jesus prayed to God in the Gospels. How can this be so, if Jesus is God?
The reason is that it fulfill all righteousness, the answer is that it isn’t as if God doesn’t know what you are praying for, or that he hasn’t made up his mind about it. But he likes to hear you speaking what you want, and he just might order events based on your response to his call for prayer. Remember this is the God that gave you lips to proclaim him, otherwise you would have been like the psalm 135 “they have mouths but they do not speak.”
This is what the catechism teaches, that prayer is a response to the gift of faith (2561).