There are indeed scripting languages that get compiled. E.g. the Rhino JavaScript engine, which is written in Java, can compile JavaScript to Java bytecode.