Back then, there was like one family in every town or village that had literate people, so this was all recorded in census. Because of this, it was actually lists of influential people, which gave rise to lists like that of who was most beautiful or whatever.