Patents are a contract between an inventor and society. The inventor discloses a new process in exchange for a limited monopoly. If we did not do this many processes would never be developed in the first place or would kept secret forever.
A patent is a document that teaches a novel, useful and non-obvious idea in such a way that anyone skilled in the art can duplicate it.
As such, patent are the engine that drives innovation.