Prayer shows our trust and faith in God. He does not need our prayers, but we do. They are a source of grace. So in His infinite love for us, God wants us to receive this grace that we can only get by a voluntary act of will, a free choice to make the effort to show our belief in God through prayer. Frequent prayer will strengthen our faith and trust and lead us to heaven, and that is God's goal.