Leviticus 10:7 "And you shall not go out from the door of the Tent of Meeting"

The priests were divided in shifts and groups which were assigned service in the Beit HaMikdash for a period of time each year.

When it was the priest's turn to serve in the Beit HaMikdash, and he began to participate in the service, he was forbidden to leave until it was completed.