Citystates are technically the barbarian leader type, so if a citystate captures a settler captured by a barbarian from a major civ, it might possibly revert to a settler instead of a worker. Alternatively, if the citystate is at war with a major civ and captures a settler that might work too... these are the only things I can think of which might allow a citystate to come under control of a settler.