Mathematics isn't something that is discovered. Ancient people put representations (numbers/formulas) to the existing facts of life and that became mathematics, just like when humans started to talk and they made representations to every sound they make using symbols, drawings which then developed to alphabets and the different language and dialects we know today.