The word invent means to create something that didn't exist before.
But you can't really have invention without discovery. So it's actually both.