It’s built-in to the MSBuild templates that the MSBuild-based generators use. These were generated directly from the templates that MS ships with Visual Studio with the Source/cmConvertMSBuildXMLToJSON.py
script.
The simple answer is to use a generator other than MSBuild that doesn’t have such built-in flag assumptions. Ninja is the usual recommendation.