LOL. The thing is... there was no need for exposure compensation before the Pentax ME. That was the first Aperture Priority Camera and with no other modes at all and it was a minor miracle at the time.
In Manual Mode there's no need for Exposure Compensation at all, if you need to give more or less exposure, you just adjust the shutter speed or aperture to give the desired bit more or less, ignoring the fact that the viewfinder display isn't showing the indicator right in the midway point of the scale, where the camera puts it when it 'decides' what the exposure should be.
However, with any automatic mode (AV, TV, Programme) the camera is designed to take a meter reading and set the exposure. Regardless of how much you adjust the shutter speed or aperture to different combinations, it will always maintain that same exposure value. If you took a shot at every possible combination the pics would all come out looking identical as far as exposure is concerned anyway - because they would be!
So that's how the Exposure Compensation Dial was born to Pentax and the ME. There was no shutter speed dial anyway. Pentax decided in their wisdom that togs might not always want to trust the onboard silicon overlord, so provided us with the Exp Comp Dial in 1/3 stop increments and it's pretty much stayed that way since with all the other manufacturers who quickly followed suit.
There was a way round the problem of course and that was just to adjust the ISO (ASA as it was then) up or down to give the desired amount of adjustment, but I suppose it was asking too much for us always to remember to put it back.
As to how it actually works - y'know I've never really thought about it, but try setting some exp comp and see if the aperture or shutter speed changes. I don't think the display changes but that doesn't mean one or the other hasn't changed anyway, but they just don't see the need to tell us. It would be equally easy for the system to just make changes to the ISO.
In this digital era though it's just as possible( even more likely) that the exposure compensation is being set deep down in the bowels of the camera at sensor/processor level. :shrug: