The point of the patent was less about ensuring people invent, and more about ensuring people invent in the open so other people can (eventually) build on it. The thought goes, that without patents, people will be super secretive about their inventions and the general public will never find out how they work, and thus nobody would ever be able to improve on other people's inventions.