What are the advantages to this? Sounds like more work.
The advantage is that you're not struggling for spare I/O, so you can leave the programming/debugging pins used for just that function.
As long as you use the same series of PIC (16F etc.) it's trivial to switch to your original target processor after debugging - it's particularly common on small devices like the 16F508 etc. where pins are seriously at a premium.