Those protocols have been developed for centuries, and their main purpose is to preserve the dignity of inter-state meetings. That is why all nations have such protocols, unless there is the so-called meeting "without ties", meaning informal one. Here is Washington D.C. yesterday.
The master and the servant.