Probably because the productivity increase of using a modern language far far outweighs the performance advantage of using c++.
It's an urban legend that C++ is faster than Java. It's correct only if C++ code was compiled for that very family of the processor, otherwise Java program will run faster after JIT compiler hits (subject to JIT compiler quality).