Why do we need to pray if G-d knows our every need?
If a billionaire handed his son his credit card with unlimited cash access, his son would grow up spoiled and irresponsible.
In the same light, if G-d gave us everything we wanted automatically, we would never grow, define what we want in life and reaching higher levels. Prayer is, if you will, a journey of maturity.