China doesn't want this mess getting any messier. At the end of the day, both Trump and Kim are wild cards, and a simple fuckup could blow nuclear fallout and/or waves of refugees over the Chinese border.
Meanwhile, China can come out a big winner by seizing this opportunity to play the adult in the room while simultaneously embarrassing the US. Trump has handed this win to Xi in a tidy little gift box.