Because the here-doc will be evaluated again by the shell, it will was changed to avoid this. Because the script does not depend on such function, it will be done in faviour of special characters.