Its easier for them to scrape than it is for anyone else. they also have a lot more meta data about the code which may be useful.
Do Github terms entirely prevent them from making use of data in private projects.