Happened with my last company in Oz. Could think of two captains that were demoted to FOs. Failed a sim, but past history of those particular individuals showed consistent fails or passes by the skins of their teeth.
With union protection and all...
Fuel-Off