This is intuitive because the query string makes the filename extension incorrect. Practically, it sometimes avoids using the extension argument of fetchzip. Example:
https://github.com/NixOS/nixpkgs/blob/5a6e073dad0d2c502a55c1db56cc6531f678081b/pkgs/by-name/ce/celeste-classic/package.nix#L20-L25