INSTALL.md [0] recommends passing -DWITH_XC_ALL in the Build Steps section.
This build option exists. If you're building from source and don't need any of the extra features, you can use it to get a leaner binary. But the Debian maintainer made this decision for everybody, removing important security features (such as browser integration and YubiKey support) from the main `keepassxc` package, which broke people's existing installations, and which means that people blindly running `sudo apt install keepassxc` will get an inferior, less secure product.
[0] https://github.com/keepassxreboot/keepassxc/blob/develop/INS...