It's just coincidental, one fad inspired another's name. Kind of like C++ and C#. Syntactically JS is kind of similar to Java, isn't a big leap to move from one to the other.
>>105776184 C# is Microsoft's Java, no relation to C++ Javascript is a rebrand of ECMAScript, no relation to Java. Yes I realize how ridiculous that sounds.