Curl is invoked for downloading particular files. Without "-g" flag it would apply globbing rules to URLs, which may end badly in case URL is not properly quoted.