HTML is full of historical quirks, and link vs script is one of them.
Originally, link was used to show the relationship between the current page and another, such as the next page. There was no sense of including more data into the current page.
When JavaScript was developed, it included the creation of two new tags: script to contain the JavaScript, and noscript. In non-supporting browsers (or those with JavaScript turned off) the content of the script tag would then be ignored, and the alternative content in the noscript tag would be used.
For reasons best known to the developers, the script tag doubled up as an include via a src attribute, but embedded JavaScript, if any, would be ignored.
CSS didn’t come into the picture until much later, and the developers also included an embedded version in the style tag. However, they took a different approach for an included file, and repurposed the link for that.
If JavaScript were developed more recently, it’s possible that they might also have used the link for included files, but that wasn’t to be.
linktag is used to relate stylesheets instead of javascripts.scriptis a possible value forlink rel=.