The reason is you need to understand the markup on a web page with HTML before you can alter its look/feel via CSS and before you start altering either via Javascript.
Frameworks will come and go over time, if you know the foundational aspects of what the frameworks are doing it will be easier to pick up the next framework that becomes popular.