In the USA, patents are explicitly mentioned in the Constitution and the purpose is to incentivize disclosure, not because the founders were worried about industrial espionage. It would have been awfully difficult for hostile powers to remotely hack our R&D facilities in 1789.