Mathematics is abstraction and Metaphor defined: "a thing regarded as representative or symbolic of something else, especially something abstract." It's not what you were taught, but that's functionally what it is.