"And Moses chose able men out of all Israel" (Exodus 18:25). He appointed judges over them, and he commanded the judges that they should bear the burden of the community, as the matter is stated, "And I commanded your judges at that time" (Deuteronomy 1:16). And he commanded the people that they should treat the judges with honor, as the matter is stated, "And I commanded you at that time all the things that you should do" (Deuteronomy 1:18).
Judges Must Bear the Public Burden and the People Must Give Them Honor
Mekhilta DeRabbi Shimon Ben Yochai 18:24
ויבחר משה אנשי חיל מכל ישראל וגו' מינה עליהן דיינים וצוה את הדיינים שיהיו סובלים טורח הצבור כענין שנ' (דברים א' ט"ו) ואצוה את שופטיכם וצוה את העם שיהיו נוהגין כבוד בדיינים כענין שנ' (ע' שם י"ח) ואצו אתכם בעת ההיא את הדברים אשר תעשון: