Because it breaks the paradigm of
HTML = Content
CSS = Style / Design
JS = Interaction
Once you start to mix them up you start down a hair path
HTML = Content
CSS = Style / Design
JS = Interaction
Once you start to mix them up you start down a hair path
So, the breakup which you have given does not unequivocally argue for the use of JS.