Seems strikingly similar to art. The original artist just needs to (e.g. paint) and may give it away for a meal. Most such art sits around gathering dust, the few reach dizzy heights of financial transactions but the artist doesn’t get any (usually dead by then)
Licensing is not the silver bullet as enforcing it is beyond the means of many.
And saying it’s a socialist or communist thinking is too simplistic. I often wrote code just for the intellectual exercise of solving a problem. Sometimes I gave it away somethings I deployed it in my own licences code.
I’m not sure what I’m saying here other than ‘it’s complicated’