It's appears to me this command configures dev, staging and production environments with specific envs. The build command uses a build default target when no environment is specified. So it's used just to configure multiple envs with especific properties for project.
You can read more here: https://angular.dev/tools/cli/environments