Because most mods take advantage of Java capabilities, so JavaScript extension points are not as interesting.
However the C++ version has a reason to exist, sadly Java never established itself for gaming outside desktops and J2ME/Android.
One could argue about AOT, but those are not widely adopted, CodenameONE, RobotVM.
[dead]
You should check out Codename Ones recent gaming related features...