These can be used by frontends e.g. for conditional compilation, or simply for printing, logging to debug output, and so on.
The default behaviour of PKG_CHECK_MODULES is to abort with an error anyway, but it will also print a more usable error message and hints for the user about how to use PKG_CONFIG_PATH and so on.