Piracy was used as far back as the 1700s to refer to illegal copies of books or unauthorized publishing outside of publishing monopolies. In general, I get the feel of breaking monopolies, turning to less savory methods to get what is owed, and liberating goods from the hands of wealthy hoarders.
For a while, the U.S. publishing industry was based on pirating British books, many of which were previously pirated from France. The only significant difference between the usages is the freeing of information vs keeping goods for oneself.