This is such an engineer answer. The OP means how does that work given strict compensations policies and pay bands that huge companies like MSFT have and strictly enforce.
They can and will totally ignore them, when it benefits them directly. They will also easily find a way to explain why that was okay in case A, but won't be in case B.
And it’s why HR is a piece of useless shit.