There used to be a good reason, so it was written into law and no-one has bothered to change it. Or maybe it's a religious thing. 

See https://www.telegraph.co.uk/news/uknews/1370385/Navy-up-in-arms-over-challenge-to-sword-protocol.html for inspiration.