Mathematics is ingrained in your body and cosmos. It is something which existed since time immemorial. It was never discovered by any scientists doing any scientific discoveries. People got aware of it after studying nature to its core. Everything in this entire universe exists in a pattern.