Happens ALL the time in the private sector.
Years ago, my brother worked down at the Chicago Board of Trade. He was about to give hisb2 week notice and start a new business as a contractor. He got called up from the floor by his boss and told they’re going to let him go, but gave him a years salary. He acted all sad and left. He was the happiest guy you ever saw.