I seem to recall that some religious rites were considered "mysteries" in pre-Christian times, and the Christian church picked up on the idea of mystery. Is there no connection between an ecclesiastical mystery and a trade secret? To me they seem to follow.