Commentators unanimously agree that Jesus' prayer wasn't for His own sake, as He had perfect confidence in the Father. He spoke aloud "because of the people," to explicitly link the coming miracle to God. This was to ensure the crowd would understand His power came from the Father and believe that He was divinely sent, not performing a trick or using demonic force.