I used to think that this kind of salute was only used by the military, but then I realized that it's common among ostentatious policing services, even non-military ones. In my country, the fire department and the police are military institutions, so it's not a courtesy, it's an obligation to salute superiors.