<script>
is a HTML tag, which isn't interpreted by the JSP engine.
<cc:script>
and <spring:theme>
on the other hand, are JSP tags, which are interpreted by the JSP engine and you can't nest JSP tags the way that you can do with JSP tags in attributes of HTML tags.