We invented a way of communicating mathematical concepts to each other but the underlying mathematical / physical principles that govern this world have always existed. So humans over time discovered these phenomena and then created a universal way of expressing these things to each other.

But to give a more definitive answer, humans created Mathematics as a language of logic.