In the form of "the law of the conservation of misery" it was apparently a favourite saying of Steve Jobs' not-always-loved subordinate manager Bob Belleville
https://www.folklore.org/StoryView.py?project=Macintosh&stor... , and sure enough Belleville had apparently been in the US Navy:
https://www.folklore.org/StoryView.py?project=Macintosh&stor...