Fired is a bit strong. They have been let go under contract conditions.
Mostly they are over 60 and the quota for over 60s on the 787 is already met. The fleet is finished here. So the pilots ate no longer required.
Its the contract world.
If you dont like it you, vote with your feet. Kimono.