Why CUBLAS can be compiled with gcc?

Now I am learning about CUBLAS, and find that CUBLAS can be compiled with just gcc compiler. Does CUBLAS need CUDA API to execute the program? Is it different with CUDA?