All languages target an abstract machine, except Assembly that is.
The thing is languages like C and C++ is that their runtime libraries are so thin that you end up being dependent on the OS API for anything useful.
Most other languages, even native compiled ones, tend to offer better set of libraries along side the compiler.
Its the VM level portability that counts.