That's the idea behind patents. You get a period of what is essentially monopoly license in exchange for the idea being made available to the public. The issue with copyright is that it lasts far too long now compared to the original length (14 years in the US), which throws off the balance.