"And if the Levite comes" (Deuteronomy 18:6) — Scripture speaks of the priest. In twenty-four places they are called Levites, and this is one of them, as it is said, "And the priests the Levites, the sons of Zadok" (Ezekiel 44:15). "From one of thy gates" — at the time when all Israel enter through one gate.
Why the Torah Calls the Priest a Levite in Deuteronomy
Midrash Aggadah, Deuteronomy 18:6
וכי יבא הלוי. בכהן הכתוב מדבר. בארבע ועשרים מקומות הם קרויים לוים וזה אחד מהם והכהנים הלוים בני צדוק (יחזקאל מד טו): מאחד שעריך. בשעה שכל ישראל נכנסים בשער אחד: