saluting is the military courtesy of respect, it can be in either forms of hand gesture, rifle shots, swords etc.
the history of saluting dates back at the medieval ages where knights race their visors to show their faces (having a friendly intention)