This tradition originates from shamanic times in Asia. According to belief, emperors were shadows of the god (which is sky) and some respect(!) was needed when an emperor was murdered. The very same tradition can be also seen in Mongols. See the death of Jamukha: https://en.m.wikipedia.org/wiki/Jamukha