At least in their piano patches, synths are programmed to replicate, or at least imitate, this inflation in tuning in order to sound like a proper piano. My mid-90's vintage Alesis QuadraSynth plus has a setting for this which basically applies a function to detune the pitch, across the keyboard range, by a programmable amount.