The tradition of firing guns as a salute was originally a sign of peaceful intentions. Since guns and cannons would need to be reloaded after each shot, firing your gun in the air essentially rendered you “unarmed.” – WTF Fun Facts
Source: https://history.army.mil/html/faq/salute.html
