(Not a lawyer, so this is really definitely absolutely not legal advice and if you're looking to profit you should speak to a lawyer... for instance the lawyers who just filed the lawsuit)
They're asking for two things, injunctive relief (ordering github/openai/microsoft to stop doing this) and damages.
I suppose the injunctive relief really benefits anyone who doesn't want AI models to exist, because that's what it's asking for.
The damages will go the members of the class certified for damages, with more going to the lead plaintiffs (those actually involved in the suit) and some going to the lawyers. They're asking for the following class definition for damages
> All persons or entities domiciled in the United States that, (1) owned an interest in at least one US copyright in any work; (2) offered that work under one of GitHub’s Suggested Licenses; and (3) stored Licensed Materials in any public GitHub repositories at any time during the Class Period.