Not knowing anything about you, I’m going to assume you mean code that you created and chose to release as OSS. That’s your choice, and publishers have the same right to release their works under different terms (through agreements with the authors they have signed, etc). You don’t have any say over what other creators choose to do with their works, and if they choose terms you don’t like, you can’t just ignore them.
Without strong copyright laws, the choice you make is just as enforceable as the choice they make.
> I’m going to assume you mean code that you created and chose to release as OSS.
It doesn't matter how the output is licensed; I'm paid for the process of creating that output, not for the perpetual profiting over that finite output. That's the point you're missing.
Contrast with publishers, where it's the other way around.