I had exactly the same experience. The manager answered me "wait, I can actually raise you! Here it is!". I merely had to be a dick like them for them to do something. I still left.
I had a similar reaction. My coworkers resented me for getting a raise when they didn't, and I don't blame them. I told them they all deserved a raise too. I left a few months later.