It was the War of the Roses. Many people had attainders against them when they took the throne. Bolingbroke aka Henry IV, then later Edward IV (probably both times), Henry VI (re-ademption), and finally Henry VII.
If you take the throne you could reverse the attainder.
In Warwick's case...