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.