The past perfect in the first line is confusing you. There is obviously some earlier context such as 'People from the flooded plain started dribbling in, in just as bad a state.' Before they arrived, the aid workers had expected that they wouldn't be in as bad a state as the ones they had previously seen. The expectation about the second lot of refugees was formed after seeing the first lot of refugees.
Student or Learner