The story serves more as an idiom for “logical fallacies”. Everyone, including the King, mistakenly believes everyone else see the clothes. They fear that pointing out the fact would brand them as an idiot. Simply, everyone fears to be not of the general opinion.