The rough analogy is as follows:
Physics: Theory/models predict what happens in nature
Mathematics: A model is a structure that satisfy a theory, so in a sense, theory in mathamatics played the role of nature in physics, and structures/models in mathematics played the role of physical models in physics