Because Javascript and SQL are not the basic principles needed to get started. Logic, algorithms, loops, functions, variables, and other such things are. So you learn the basics with whatever tool is easiest, and then once you have those down, apply them when learning a new language.