NP means polynomial-time checkable proofs, but it is polynomial in the length of the problem instance, not in the length of the proof. That works for combinatoric problems, where proofs can be bounded, but not for math theorems, where proof length are generally unbounded.
A lot of interesting theorems should have proofs/counterexamples shorter than say.. 20 million lines of Lean?