> Most of the code that was publicly available to be trained on is written by people in their spare time, not directly making any money off of it though.
So what? The code is offered under specific licensing terms. Not adhering to those terms is just as wrong as training on a paid product.