Pretty sure it's because GitHub allows the user to put content at the root of that URL. And it's an entirely separate domain to avoid cookie stealing or whatever.
People use github.io to host sites that are developed on github.com or around projects hosted on github.com.