A careful record was kept of the heads of the ancestral houses from the distinguished families who joined the journey back to the land of Israel. Commentators agree that the repeating pattern in this account is meant to highlight the specific individual who represented each major lineage.
From the descendants of Phinehas, the grandson of Aaron the Priest through Eleazar, the leader who made the journey was named Gershom. Representing the line of Ithamar, another son of Aaron, was a man named Daniel. Finally, from the descendants of David, the leader who joined the return was Hattush.