Sometimes they sue because the company’s leaders acted in a way that materially hurt the company. They’re looking for the company to compensate the investors for their actions that lost the investors money.
How does that work? They get their own money paid back to them minus attorney fees?
Investors get nothing, but the attorneys get their fees.