I can tell you how it happened for my wife.
She would carry her old passport around with her whenever she travelled.
UKBA told her she could transfer the vignette to her new passport but it would cost around £80-£90 or just keep her old passport with valid visa.
I think it costs £100 these days for transfer. Seems a no-brainer to me but obviously people do it.