That means you can install a JRE and only have the jre contents, or a jdk and have both bin folders. You can also set your PATH to choose with instance of the java tool to use.
On a Windows® box, you would have the same contents, but they would have extensions, so it’s java.exe rather than java.
How do you know they are actually duplicate files, rather than links from one file to another? In my case, they probably are duplicates, but none of them is very large: