ProfileX and ProfileY are defined at the folder level but modified at the device level (override a named profile) or (inherit profile but edit variables) as follows:
In this case (as in Scenario B), these values were set at the device level. Override was removed and the device was set to inherit again. You might expect Step 2 of this example to be reset to Step 1. This is not the case. You would have to clear the settings in the variables section for this to happen; otherwise, the variables section would always change to the values of the inherited profile (X or Y).