If that's the only issue, I can't see the difference when I search for something on the web, copy the code and paste into my solution. There's no attribution, there's no giving back, nothing. Because I'm the community that you are saying the code is supposed to benefit.
Yeah, that sounds like a good definition of someone who is not part of the community. I copy code off Stack Overflow too, but often provide attribution in a comment. But like piracy, it's easier to hunt the whales than the small offenders.
Stack Overflow facilitates the same thing too, so it's an interesting comparison, but SO makes attribution easy and clear, and it actually made it effortless to contribute back.