Why did Jesus pray?

I am having a dialog with a non-Catholic Christian. I was told that Jesus prayed twice a day. I was asked why did Jesus pray twice a day (once at end of day and once at midnight). I had never heard of this. Why did he pray if he was God?

These links should help you understand Jesus’ prayer in the Garden of Gesthemane. If you have any further questions or concerns that are not answered by these links, please contact Catholic Answers directly.
Recommended Reading:
If Jesus is God, why would He pray to Himself?**
]* To whom did Jesus pray?**

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.