...in a capitalist society. There are systems other than capitalism.
What the FSF calls "free software" and what OSI calls "open source" are essentially mechanisms for implementing such approaches in a capitalist context, in which the abstraction of "intellectual property" is enshrined in law.