JavaScript vs Java

Overview of the relationship between JavaScript and Java

As mentioned in the previous lesson, the initial name for JavaScript was Mocha, which was later changed to LiveScript, and just before the release of the Netscape Navigator 2 browser, the name was changed to JavaScript.

So what's the reason behind using the word "Java" inside the name "JavaScript" when there was already a popular programming language named "Java"?