NumPy achieves its numerical performance by wrapping highly optimized external C and Fortran libraries, primarily BLAS (Basic Linear Algebra Subprograms) and LAPACK (Linear Algebra Package), for efficient array manipulations and linear algebra operations.