It's on purpose - GitHub specifically doesn't want raw.github.com to be used as a CDN, and setting text/plain unconditionally on all file types is part of that.