It doesn't really matter why, but Joomla uses a script tag to store HTML using a non-standard type attribute "text/something which is not javascript or ecmascript". Mootools String.stripScript extracts all script tags regardless of whether the type attribute indicates it as javascript and attempts to execute it which is incorrect functionality.
Note: The script could equally be e.g. vbscript.