The ideal amount of JavaScript is zero.
I would imagine this was mostly driven by accessibility requirements more so than some ideological rigidity.
Ideology or not, exclusion does not help.
almost forgot to answer the question: because I don't know any better
Unfortunately, accessible HTML solutions for well established UI patterns like menus and tooltips are still far too difficult to get right (anything that requires JavaScript usually).