They care about one thing, dollars. If you are making them money, they will keep you no matter what. If you are not making them money, they will get rid of you. Pretty rational I think.
Corporations are run by people, and they draw on a huge variety of sources to make their decisions. Including, obviously, some that are not rational.