Probably her salary was such that she figured being Musk's front for a few years then retiring to an island would be more lucrative than continuing her existing career. It's not like it wasn't obvious to everyone that Musk would remain in charge and would continue to make bad decisions.