There were many different roles to fill in Israel, from gatekeeper to Temple servant and many more. When these people went into captivity, they continued in their roles because the gifts and calling of God are without changing. And when they returned to the land, they continued right along with those God-called roles.