jar/war is not just the application executable file, it is a "package" of the application. By analogy with apk, msi, deb, etc.
In addition to executable code, jar, as a normal zip archive can contain resources, libraries, descriptors, manifests, and any other files that will need application or system that uses it.
And, as already noted, the application in this format should work on different platforms.