Where does Programs provided come from?

On https://search.nixos.org/ there is a section “Programs provided”
example: Codeblocks

How does the website know which Programs are provided if they aren’t defined in the package.nix? (source codeblocks)
My current guess is that when the package gets build from hydra it saves the <package>/bin executable names and displays them as Programs provided.
Is this assumption correct?

You’re correct! In fact, this is also why NixOS search claims a program does not provide any programs if the build is failing on Hydra.