It’s not the compiler that knows, it is proffieos:
If no BLADE_ID_CLASS is defined, it uses a default which depends on what board you are compiling for.