Interesting, I noticed after updating to Debian 13 that many binaries I install got autocompletion magically without any configuration.
The bash-completion maintainers have started adding completions that know how to extract completions from specific binaries, you can see them at /usr/share/bash-completion/completions/_*
It's a bit weird and a bit hackish, but it's superconvenient!