Our terms of service state that users can only provide contributions that they have the right to contribute. Then we also must consider that copyright law in the United States can be even more confusing than our tax code, and we don't expect everyone to know the ins-and-outs of it. To this, please always try to assume good faith on behalf of the contributor, especially when they make it clear that the work is not their own.
Moderators do not intervene in cases of copyright, they intervene only in cases of very apparent plagiarism. And the remedy for this is to request that the person provide appropriate credit through proper citation, or delete the post. In other words, moderators should be involved where the contribution was very clearly not in good faith.
The DMCA provides a framework for copyright holders to request that content be taken down if they care to do so. This involves a short, but clear trail of paperwork and we comply with any properly submitted request. It is up to the copyright holder, however, to initiate this process. We can't be sure who they are, we don't know if they'd object - and Stack Overflow gets thousands of posts every day.
US law provides a safe harbor framework for this very reason - we can't possibly deal with possible infringement on a 100% proactive basis, which is why the law says that our responsibility lies in complying with proper requests to remove things. Doing anything else is giving up ground that US law affords us.
But that's not to say that we're not proactive when we should be, or bad netizens.
As others have noted, it's more a question of our standards - and we very strongly encourage people to make sure the majority of their answers are their own creation. It's fine to cite, it's fine to build upon examples, but you need to own the narrative. Mods are very picky about this, and enforce it regularly. Copying without proper citation, or a pattern of wholesale copying even with citation is going to get you a moderator message at the least.
We also deal with waves of spam where people copy great content from other sites in an effort to build up enough rep to be able to edit or bypass some of the new user restrictions. We delete this without question or hesitation because it's obviously in bad faith.
There was a time when we were trying to find the right balance - especially in the broader network. We didn't want people creating sites where they just cited Wikipedia articles - even though it's perfectly okay to copy Wikipedia with attribution. It wasn't really clear how much was 'too much'. So you will find some verbatim copies of manual pages, excerpts of language FAQs, passages from standards and the like - without much narrative at all from the person posting it.
These don't measure up to the standards we hold today, but they were good-faith, valuable contributions at the time. Removing them on the presumption that the actual copyright holder might consider the use as an infringement seems like a bad way to go - especially given that requesting removal is (more or less) a very painless and convenient process.
The law is structured in a manner that we don't have to think about possible copyright infringement due to something someone posts too much. We should, definitely be very proactive against bad actors - but let's also enjoy the value of not having to worry about it otherwise (unless we get a request, which is easily and routinely handled), as the law provides.
Side note: We do report requests to chillingeffects.org - and yes some of them are notices to remove code from assignments here on meta.