RS engine is written with mostly Java, but all of the content they release is designed with RuneScript, which is basically the Runescape equivalent of GraalScript.
Java doesn't necessarily suck, and it all depends on personal preference but the point they are making is somebody who learns GraalScript is not wasting their time as it's still programming and you'll learn a lot of programming fundamentals from it which can be applied to most other languages.