These were the names of Levi's sons: Gershon, Kohath, and Merari.
The sons of Levi: Gershon, Kohath, and Merari.
David divided them into sections corresponding to the sons of Levi: Gershon, Kohath, and Merari.
So Moses registered them following the Lord's instructions, just as he had been told.