North Korea has been one of the most annoying and notorious state, who likes to poke fun at World Powers and is a big troll country which has constantly been on the nerves of their neighbours. North Korea does what it feels correct and constantly has been on radar on human rights watch and is a convict country. Despite all of these problems, China still backs up North Korea. Why ?
The following are the two reasons for Chinese government backing North Korea.
North Korea is already a huge humanitarian crisis, but collapse of the regime means that a huge portion of that becomes China’s problem more or less immediately. Millions of North Koreans would flee into Northeastern China, which already has a large population of ethnically Korean citizens. Actually keeping these people alive after living their entire lives in the DPRK would be enormously expensive and a logistical nightmare.
China likes having North Korea as a buffer state. Regardless of who would take over the area that’s currently North Korea in the event of a collapse, China likely winds up with a US-allied country on its border, if South Korea would reunited with the North (which would cost South Korea trillions and take a very, very long time; the Reunification of Germany was a cakewalk compared to the situation in the Korean Peninsula). It would rather that didn’t happen.
They know how bad things are in the DPRK, but by nominally supporting the Kim regime, everything is contained, from China’s perspective. The status quo is the least bad option, in China’s view.