You'll gain up to 6 inches, always assuming the other bloke doesn't do the same.
If they took the time off the rider, rather than his bike, there wouldn't be any point in it.
You get the same effect in reverse if you are too close behind on a climb, and the bloke in front suddenly gets out the saddle.