To bind his princes at his pleasure. The kings of Egypt were despots, and could imprison any subject. Joseph, as the Pharaoh's alter ego (Genesis 41:40, Genesis 41:44), would, of course, be able to do the same.
And teach his senators wisdom. As being wiser than any of them (Genesis 41:38, Genesis 41:39).