because maybe it was a ploy to get a better raise? who knows. you're right, though - if the allegations were true, why continue to work there?
That question is probably easier to answer for Tesla than for any other company: It's the place to be if you're any engineer with an interest in renewable energy.
It'd be a tragedy to tell people they have to chose between freedom from sexual harassment and fulfilling their professional aspirations.