My take on this is that Mathematics is such a vast area of investigation - much larger than Nature itself - that there is in fact a mix of both. In that regard it is close to Engineering, where in an attempt to design something on might stumble upon things or perform some types of research and discovery, and vice versa.