JavaScript is environment agnostic, such that JavaScript doesn't know what a directory is. Many other languages have a standard library that define these things, but JavaScript does not deliberately to avoid presumptions upon specific environmental constraints that apply in some conditions but not others. A directory is a convention of a file system. When executing in a web browser there is no file system.
If they wish to achieve convention and function compatibility with code that works in the browser certain constraints are necessary to prevent assumptions that work in one place and not another. Also, consider the work that happens when resolving files from a directory:
1. You have to determine if the thing is a directory or a file.
2. Get list of files in directory.
3. Read each file
4. Determine if that file is a ESM.
5. Load modules only if the file is ESM.
These steps would not work in a browser.