Jesus performing the miracle of feeding the five thousand in a desolate place is the work of God to reveal the Son of God's deity and to point us to His body as the bread of life, given from heaven as meat for eternal life.
Please read the entirety of John 6 in your Bible.
Jesus said, “Have the people sit down.” Now there was much grass in the place. So the men sat down, about five thousand in number. Jesus then took the loaves, and when he had given thanks, he distributed them to those who were seated. So also the fish, as much as they wanted.
When the people saw the sign that he had done, they said, “This is indeed the Prophet who is to come into the world!” Perceiving then that they were about to come and take him by force to make him king, Jesus withdrew again to the mountain by himself.
When they found him on the other side of the sea, they said to him, “Rabbi, when did you come here?” Jesus answered them, “Truly, truly, I say to you, you are seeking me, not because you saw signs, but because you ate your fill of the loaves. Do not work for the food that perishes, but for the food that endures to eternal life, which the Son of Man will give to you. For on him God the Father has set his seal.” Then they said to him, “What must we do, to be doing the works of God?” Jesus answered them, “This is the work of God, that you believe in him whom he has sent.” So they said to him, “Then what sign do you do, that we may see and believe you? What work do you perform? Our fathers ate the manna in the wilderness; as it is written, ‘He gave them bread from heaven to eat.’” Jesus then said to them, “Truly, truly, I say to you, it was not Moses who gave you the bread from heaven, but my Father gives you the true bread from heaven.
John 6:43-51 (The Jews grumbled against Jesus, because He said he is bread from heaven)
Jesus answered them, “Do not grumble among yourselves. No one can come to me unless the Father who sent me draws him. And I will raise him up on the last day. It is written in the Prophets, ‘And they will all be taught by God.’ Everyone who has heard and learned from the Father comes to me— not that anyone has seen the Father except he who is from God; he has seen the Father. Truly, truly, I say to you, whoever believes has eternal life. I am the bread of life. Your fathers ate the manna in the wilderness, and they died. This is the bread that comes down from heaven, so that one may eat of it and not die. I am the living bread that came down from heaven. If anyone eats of this bread, he will live forever. And the bread that I will give for the life of the world is my flesh.”
Type and shadow
Now I want to remind you, although you once fully knew it, that Jesus, who saved a people out of the land of Egypt, afterward destroyed those who did not believe.
Jesus Christ is God that lead the nation of Israel out of Egypt. And it is Jesus who fed Israel in the desert, "meat from heaven".
They set out from Elim, and all the congregation of the people of Israel came to the wilderness of Sin, which is between Elim and Sinai, on the fifteenth day of the second month after they had departed from the land of Egypt. And the whole congregation of the people of Israel grumbled against Moses and Aaron in the wilderness, and the people of Israel said to them, “Would that we had died by the hand of the Lord in the land of Egypt, when we sat by the meat pots and ate bread to the full, for you have brought us out into this wilderness to kill this whole assembly with hunger.” Then the Lord said to Moses, “Behold, I am about to rain bread from heaven for you, and the people shall go out and gather a day's portion every day, that I may test them, whether they will walk in my law or not. On the sixth day, when they prepare what they bring in, it will be twice as much as they gather daily.” So Moses and Aaron said to all the people of Israel, “At evening you shall know that it was the Lord who brought you out of the land of Egypt, and in the morning you shall see the glory of the Lord, because he has heard your grumbling against the Lord. For what are we, that you grumble against us?” And Moses said, “When the Lord gives you in the evening meat to eat and in the morning bread to the full, because the Lord has heard your grumbling that you grumble against him—what are we? Your grumbling is not against us but against the Lord.”
Study of connections
The deity of Jesus Christ certainly comes to be revealed in that even the Jewish people that followed Christ (not the 12 disciples), recongised that the miracle of bread/meat in a deserted place, that God was showing them that this was indeed the promised "Prophet" that was to come into the world.
I will raise up for them a prophet like you from among their brothers. And I will put my words in his mouth, and he shall speak to them all that I command him. And whoever will not listen to my words that he shall speak in my name, I myself will require it of him.
In John 6:45, "It is written in the Prophets, ‘And they will all be taught by God.’", this we find in Micah, and more... (Isaiah 54:13; Jeremiah 31:33-34; Hebrews 10:16; Hebrews 8:10-11; 1 Thessalonians 4:9; John 5:38-40; Isaiah 2:3; Ephesians 1:17; John 16:14-15; John 10:27; Luke 1:70; Luke 18:31; Matthew 11:27)
“Come, let us go up to the mountain of the Lord, to the house of the God of Jacob, that he may teach us his ways and that we may walk in his paths.” For out of Zion shall go forth the law, and the word of the Lord from Jerusalem.
- https://www.openbible.info/labs/cross-references/search?q=John+6%3A45 - Cross referencing tool
Unless otherwise indicated, all Scripture quotations are from The ESV® Bible (The Holy Bible, English Standard Version®), copyright © 2001 by Crossway, a publishing ministry of Good News Publishers. Used by permission. All rights reserved.