"You have a pile of lumber. You sell it, at a mutually agreed upon price, to someone who builds a house with it."
.
And you are perfectly free to sell other lumber to that builder's competitors at the same time. And if the builder trys to make a "no competition" clause a part of the deal, no lumber mill (or other seller) will sell that builder lumber. The labor market has an entirely different dynamic.