Do you have a reference for that? The only legal definitions of piracy I can find specifically refer to acts of robbery/criminal violence at sea.