Copyright doesn't restrict the spread of knowledge. Knowledge can't be copyrighted, and isn't present in most of works pirated anyway. But any information in a copyrighted work can be shared, just not the verbatim content.
Patents also can't prevent the spread of knowledge, but only temporarily prevent it's commercialization by third parties. They actually help to open it up and limit trade secrets.