Money likely isn't the main goal (maybe it is for the lawyers), these are open source repos. Maybe they didn't consent to have their code used as training and that seems like the kind of thing consent should be needed for. Maybe this the AI spitting out copied snippets is a violation of open source licensing without attribution.