KSP does not require kapt and java stubs to work and has direct understanding of kotlin concepts such as inline functions, default args, object classes. In addition to that it needs to do much less work to achieve the same result, therefore winning on performance.
However, since it works directly with kt files, you cannot use it on java files or projects