They were appointed to follow the regulations for the tent of meeting and the holy place and to help their relatives, Aaron’s descendants, as they served in the Lord’s temple.
The men chosen to be gatekeepers at the entrances totaled 212. Their genealogies were recorded in their villages. David and the seer Samuel appointed them to these positions because they were trustworthy.
They were doing what their God required, what needed to be done for cleansing. The singers and the gatekeepers did what David and his son Solomon had ordered them to do.