despite what american propaganda may make you believe, the average north korean does not in fact live in abject poverty and eat rats to survive, or get dragged down the street for minor offenses. yes, north korea has a brutal dictatorship, but for the most part, north koreans work gray market jobs to earn a living, which the government does not formally allow, but they also dont strongly enforce (similar to cuba). people have access to public transit, healthcare, schooling, etc, unlike war torn countries such as south sudan. north korea also does actually participate in global trade, even with europe, although they are heavily sanctioned too.
i am in no way supporting north korean government, and it is in fact terrible and poverty is common, but it is nowhere near as bad as American propaganda makes it seem, nor is it as bad as being stuck in a war torn, disease ridden, desert with barely any infrastructure.
5th place is also still pretty fucking bad for a country that hasn't been at war for half a century.