The mechanics of how magnetism works is a theory, in the same sense as gravity. The reality of magnetism (things stick/repel) is an observable fact, in the same way that the results of gravity (things fall down) are very real and factual.
In other words, magnets are real but magnetism is a scientific theory.