I guess I just find that too weird to understand.
Really? Hmm...I'll try and rephrase.
Take any group of people...and that's all a country is at the end of the day...and there'll be differences from OTHER groups of people.
Those differences are not indicative of better or worse people, as such. As someone said, people are people.
But one group of people has come up with a legal system that denies women property rights. Child Labour is permitted, and there is a State-religion which imposes theocratic rules about all sorts of things.
Freedom of religion and expression are violently suppressed.
The second hypothetical country has a legal system that encourages fair representation of all, including those unable to represent themselves. There are public health and social welfare programmes in place. Religion and expression are free, or at least close to it. Children are protected by law in terms of child labour, and in terms of education.
So, is someone in Country 2 wrong to feel some patriotism?
If they are proud of Country 2 simply because that's where they live, then it's jingoism. If they're pushing that everything their country does is better, same thing (or nationalism if you prefer). But I can feel a belonging and a certain level of pride (in achievement, in fairness and justice, etc) in ANY group I belong to. That includes, but is not limited to, my country.