I'm not the OP, but can offer two reasons:
1. You'll be labeled as disloyal. Which is euphemism for: someone at HR is already looking into replacing you.
2. Whatever problems prompted you to want to go away are still there.
Similarly, never offer a counter-offer as a manager. Because:
1. You don't want to send the message to others that it's a valid way to get a raise.
2. Whatever problems prompted them to want to go away are still there.
There reportedly are exceptions when things work out on both sides of the fence. But in almost 20 years, I've yet to see one first hand.