This is pure speculation, but I'm guessing they were working on ensuring that the ML models built by Twitter to do things like content moderation, tweet promotion, identifying trending hash tags, customer service help, and more were behaving in an ethical manner.
More concretely: Helping the teams who actually build and maintain these models ensure that the behavior isn't biased, that the model isn't being exploited by adversarial data, that the decisions made by the model are explainable, that the decisions are fair, coming up with corporate-standard-definitions for those various mutable terms (like fair), etc.
The usual things handled by a team that is tasked with AI Assurance/Ethics.
Now for my opinion: When it comes to impugning Elon Musk's character, he's done enough of that himself. He doesn't need my help. Additionally, firing an AI Ethics team in a company which requires AI(ML) to even operate speaks for itself.