My impression is the primary purpose of class action lawsuits is to stop bad behavior, not necessarily to enrich plaintiffs. Lawyers do make quite a bit of money IF they win. They also take all the risks since class members don't pay anything for legal services upfront. So, class actions seem to be an important mechanism for correcting bad behavior of larger entities.