Philo was following exactly the same line of thought when, writing the Life of Moses, he observed, “The care needed in guarding flocks is a preparation for kingship.”
…The task of the shepherd is so important that it is rightly attributed not only to kings, sages, and souls of perfect purity, but even to the sovereign God. …Like a flock, the earth, the water, the air, the fire, all the plants also, all the beings found there, both mortal and divine, the nature of heaven too, the revolutions of the sun and moon, and more, the variations and harmonious movements of all the stars, are all led by God, shepherd and king, according to Justice and the Law.
From Divine Craftsmanship by Jean Hani (66), and quoting Philo from De vita Moysis and De agricultura.