GitHub has a public option for repositories which would have allowed anyone to see the source code, but instead EpicGames wanted to collect more private information on anyone that wanted to see the source code, and now they have a PR problem because of it.
They wanted a signed ToS because it is only ‘source available’.
Maybe GitHub just was not the best way to make a large readonky non-open source codebase available