That's one way to look at it, another way to look at it would be something like a community farm where someone took a few ingredients that were just sitting there and being given away for free and cooked them up into something special and sold it.
There's nothing wrong with people working on hobby projects for fun, regardless of how useful they may be, and there's nothing wrong with others taking that work and building upon it for their own purposes. That's the entire point of open source software.
If you find yourself upset that someone "stole" your freely given away work or is making a profit off of it or you yourself are not being "compensated" for giving away "free" things you're the problem here.
I think this analogy breaks down when you make money from it. It's more like your chickens lay more eggs than you need, so I break into your coop, steal the excess (you still have all you need) and set up a stall by the side of the road selling eggs for $2 a dozen.