So they were scattered because there was no shepherd, and when they were scattered they became food for all the wild animals.
References for Ezekiel 34:5
My sheep wandered over all the mountains and on every high hill. They were scattered over the whole earth, and no one searched or looked for them.
References for Ezekiel 34:6
“ ‘Therefore, you shepherds, hear the word of the LORD:
As surely as I live, declares the Sovereign LORD, because my flock lacks a shepherd and so has been plundered and has become food for all the wild animals, and because my shepherds did not search for my flock but cared for themselves rather than for my flock,
References for Ezekiel 34:8
therefore, you shepherds, hear the word of the LORD:
This is what the Sovereign LORD says: I am against the shepherds and will hold them accountable for my flock. I will remove them from tending the flock so that the shepherds can no longer feed themselves. I will rescue my flock from their mouths, and it will no longer be food for them.
References for Ezekiel 34:10
“ ‘For this is what the Sovereign LORD says: I myself will search for my sheep and look after them.
References for Ezekiel 34:11
As a shepherd looks after his scattered flock when he is with them, so will I look after my sheep. I will rescue them from all the places where they were scattered on a day of clouds and darkness.
References for Ezekiel 34:12
I will bring them out from the nations and gather them from the countries, and I will bring them into their own land. I will pasture them on the mountains of Israel, in the ravines and in all the settlements in the land.
References for Ezekiel 34:13
I will tend them in a good pasture, and the mountain heights of Israel will be their grazing land. There they will lie down in good grazing land, and there they will feed in a rich pasture on the mountains of Israel.
References for Ezekiel 34:14
I myself will tend my sheep and have them lie down, declares the Sovereign LORD.
References for Ezekiel 34:15