Its imperative nature (mutation, side effects) and potential non-termination makes it unattractive as a catch-all hypertext document language.
By using the language of Least Power (timbl@w3c.org) that still accomplishes your task, you achieve a more concise and more analyzable document.
I wouldn't call that "nothing to do with TC".