Humans discovered math as it is a representation of the natural patterns and structures found in the physical world.
For more information read below
Mathematics is a fundamental part of human knowledge that has been developed over time. However, the question of whether humans invented or discovered math is still debated. Many scholars argue that math is a discovery rather than an invention since it reflects the natural patterns and structures found in the physical world.
As Galileo Galilei stated, “Mathematics is the language with which God has written the universe.” This statement is a testament to the idea that math has always existed, and all humans have done is discover it. The laws of mathematics are present in the natural world, and humans only uncover them through observation and reasoning.
Moreover, there are numerous interesting facts that back up the idea that math is a discovery:

Mathematicians worldwide agree on the same mathematical principles, suggesting that these principles are universal and real.

The Pythagorean theorem was known to ancient Babylonians about 1,000 years before Pythagoras.

In the early 20th century, Georg Cantor discovered that there are different sizes of infinity.

The Fibonacci sequence that appears in nature was first described in the book Liber Abaci by Leonardo Fibonacci in the 13th century.

NonEuclidean geometry was discovered by Nikolai Lobachevsky and János Bolyai in the 19th century.
To further support the argument that math is a discovery, the following table illustrates natural phenomena that can be described using mathematical principles:
Phenomenon  Mathematical Principle 

The movement of planets  Newton’s laws of motion 
Heat transfer  Fourier transform 
Genetics  Probability theory 
Resonance  Wave theory 
In conclusion, math as we know it today has always existed, and humans are merely discovering its principles. As noted by Albert Einstein, “Pure mathematics is, in its way, the poetry of logical ideas.” It is a language that helps us describe the world around us and find new solutions to complex problems.
I found further information on the Internet
While many early civilizations, including Islamic, Indian, and Chinese, made important contributions to mathematics, it was the ancient Greeks who invented much of the math we’re familiar with. Euclid fathered the geometry we named after him—all those radii and hypotenuses and parallel lines.
Mathematics is not really an invention, but more of a discovery. It encompasses many different types of studies, so its discovery can’t even be attributed to one person. Humans invent the mathematical concepts by abstracting them from the world around them, and then go on to discover the complex connections among the concepts that they had invented. Discoveries and laws of science are not considered inventions since inventions are material things and processes.
Unlike a light bulb or a computer, mathematics isn’t really an invention. It’s really more of a discovery. Mathematics encompasses many different types of studies, so its discovery can’t even be attributed to one person. Instead, mathematics developed slowly over thousands of years with the help of thousands of people!
Indeed, I posit that humans invent the mathematical concepts—numbers, shapes, sets, lines, and so on—by abstracting them from the world around them. They then go on to discover the complex connections among the concepts that they had invented; these are the socalled theorems of mathematics.
Mathematics is not an invention. Discoveries and laws of science are not considered inventions since inventions are material things and processes. However, there is a history of mathematics, a relationship between mathematics and inventions and mathematical instruments themselves are considered inventions.
Some things was invented, somethings were discovered. Math can be described as inventing abstract systems of symbol manipulation and then discovering their properties. For example natural numbers were invented and then prime numbers was discovered. That some numbers are prime is a property of natural numbers, that somebody had to discover. When natural numbers were invented nobody decided that they wanted some of them to be prime and some not. It just followed from the definition, and the definition was constructed so as to enable us to count stuff.
This video contains the answer to your query
This video discusses the debate between those who believe that mathematics is discovered, and those who believe that it is invented. The video provides examples of how mathematics has been used to solve problems in the real world.
Also people ask
Did humans create math?
And over the centuries, mathematicians have devised hundreds of different techniques capable of proving the theorem. In short, maths is both invented and discovered.
Who is the original creator of math?
The reply will be: Archimedes is known as the Father of Mathematics. Mathematics is one of the ancient sciences developed in time immemorial. A major topic of discussion regarding this particular field of science is about who is the father of mathematics. 1.
Why did people discover math?
Answer will be: Throughout history, different cultures have discovered the maths needed for tasks like understanding groups and relationships, sharing food, looking at astronomical and seasonal patterns, and more.
Did we discover everything in math?
No, and it really isn’t even close. There is much that we know—millennia of accumulated progress, in fact—but the amount that we don’t know outweighs it by no small margin. You are very wrong when you suggest that we haven’t created any new mathematics since calculus. That ignores (in no particular order):
How did humans invent mathematics?
Indeed, I posit that humans invent the mathematical concepts—numbers, shapes, sets, lines, and so on—bby abstracting them from the world around them. They then go on to discover the complex connections among the concepts that they had invented; these are the socalled theorems of mathematics.
What is the difference between discovered and invented math?
The answer is: So to answer your question: I’d say that the very basis of math was discovered, but most of the sophisticated math was invented. I think the distinction between discovered and invented is mostly about how one chooses to define these words.
What is the history of mathematics?
The answer is: The history of mathematics deals with the origin of discoveries in mathematics and the mathematical methods and notation of the past. Before the modern age and the worldwide spread of knowledge, written examples of new mathematical developments have come to light only in a few locales.
What if you hadn’t discovered math?
If you hadn’t discovered it, someone else would have, because it’s so basic, it’s so beautiful that it’s got to be there in the mind of God or in the Platonic world of ideas. But everything is in the Platonic world of ideas, the Platonic world of mathematics.
How did humans invent mathematics?
Answer: Indeed, I posit that humans invent the mathematical concepts—numbers, shapes, sets, lines, and so on—bby abstracting them from the world around them. They then go on to discover the complex connections among the concepts that they had invented; these are the socalled theorems of mathematics.
What is the difference between discovered and invented math?
Response: So to answer your question: I’d say that the very basis of math was discovered, but most of the sophisticated math was invented. I think the distinction between discovered and invented is mostly about how one chooses to define these words.
What is the history of mathematics?
The history of mathematics deals with the origin of discoveries in mathematics and the mathematical methods and notation of the past. Before the modern age and the worldwide spread of knowledge, written examples of new mathematical developments have come to light only in a few locales.
Is mathematics just a creation of the human mind?
"Intuitionists" believe that mathematics is just a creation of the human mind. In that sense you can argue that mathematics is invented by humans. Any mathematical object exists only in our mind and doesn’t as such have an existence.