The instructions here came from the need shown in chapter 17 for clear boundaries between the people, priests, and Levites. The Levites had special privileges and important responsibilities. One key part of their job was to protect the Tent of Meeting from unauthorized entry (chapter 16).