https://onemileatatime.com/qatar-airways-fires-pilot/
https://viewfromthewing.com/qatar-airways-firing-pilots-and-...
It's suggested in the first article that the pilot had failed to pass the necessary exams:
"The other side of the story here is that the pilot has spent the past six years completing a two year training course, and still hasn’t passed any of the tests necessary to become a pilot. The airline became fed up, and since they’re firing pilots anyway and trying to cut costs, they also decided to terminate their contract with her at this point."