Why are CPACK_* variables documented in two different places?

Variables starting with “CPACK_” control the behavior of CPack, right? Most of these variables are documented in the CPack help page. Some, however, are documented in the top-level variables list (https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html#variables-for-cpack). Why?

It just evolved that way. At least historically, those in the CPack module’s documentation are variables that either control the module or are explicitly initialized by it. The rest are blindly passed through by this code to CPackConfig.cmake and not interpreted until cpack(1) sees them.

I think it would be fine to consolidate them in one direction or the other.

Generic variables are documented with any other CMake variables.
Generator specific variables are documented within CPack generators.

I agree that CPack help page should at least give a pointer to https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html#variables-for-cpack
and ideally the doc there should be moved in CPack page