I am also not a mathematician, but surely it is a mix of discovered and invented. There are branches of mathematics that are purely abstract and have no relation to any physical reality.