(Exodus 33:7:) NOW MOSES WOULD TAKE THE TENT [and pitch it for himself outside the camp, FAR FROM THE CAMP]. How far away was it? A mile, as it is said (Joshua 3:4): "YET THERE SHALL BE A DISTANCE BETWEEN YOU AND IT OF ABOUT TWO THOUSAND CUBITS BY MEASURE." Why was Moses angry with them? Rather, thus said Moses: "One who is placed under a ban with respect to the master is also placed under a ban with respect to the disciple." Resh Lakish said: It is comparable to a king who had one legion, and they rebelled against the king. What did their army commander do? He took the king's standard and fled. So too Moses, when Israel committed that deed, he took the Tabernacle and went away.
Why Moses Pitched the Tent of Meeting Outside the Camp
Midrash Tanchuma Buber, Ki Tisa 15:2
ומשה יקח את האוהל [וגו' הרחק מן המחנה] (שם שםז), כמה היה רחוק מיל, שנאמר אך רחוק יהיה ביניכם וביניו כאלפים אמה במדה (יהושע ג ד), למה כעס עליהם משה, אלא כך אמר משה מנודה לרב מנודה לתלמיד, ריש לקיש אמר משל למלך שהיה לו לגיון אחד, מרדו במלך, מה עשה שר צבא שלהן, נטל סיגנון של מלך וברח, כך משה כשעשו ישראל אותו מעשה נטל את המשכן והלך לו.