The city of Zion is spoken of as if it were a woman. In Lamentations, Zion and Jerusalem are names used to refer to the same city. (See: [[rc://en/ta/man/translate/figs-personification]])
Here the people of Zion being distressed are spoken of as if they were a woman in distress. Alternate translation: "Zion's virgins are sorrowful, and its people despairing" (See: [[rc://en/ta/man/translate/figs-personification]])