Sure, for example, as way for a researcher to generate realistic GitHub profiles to combine with realistic resumes to do field research on labor market discrimination.
Example of such research, which is common, ethical, and completely legal to do:
While I would be the first to say those squares are meaningless without context, if someone led others to believe they were the result of anything other than automatically generated posted and didn’t have a legitimate reason like the one I posted, that might potentially be fraud, especially if it was used as a basis for future economic exchanges, such as employment.
Using GitHub green squares as a basis for offering employment is as stupid as using the color of their hair. Don't play stupid games if you don't want stupid prizes.
Fake code generators have been around since forever: https://hackertyper.net/
Combining them seems like the logical next step.