Hey there!
This is known as the law of increasing costs. I've seen of it as the opposite of "supply and demand", but that's not really what it is.
Just as you said, if the production of a product is booming, and the production of the other product is somewhat failing, then there is going to be more resources required to expand the second product.
I hope this helps!