Bo6 Richtofen Theory

When terminus first came out, I had this question come to my mind. When we first get access to S.A.M in the main quest, she says that her purpose right is to get you off the island or something along those lines. And she also says that her source (maxis) sacrificed herself for the good of the world and stuff. The question arises here, Richtofen was the one who programmed S.A.M, so why is she helping the crew? Why is she hunting down Richtofen? What do yall think?