Why the compilation process is necessary in programming?

Compiler help us to verify the error