Is that not how most great technologies are born? Ok some are for war, but most of the "cool" technologies I've seen (even some made by co-workers) are all about someone having a major itch and developing the best damn back scratcher they could to scratch that itch.
Its quite incredible what someone with a vision can do, even without technical prowess that some posess. Its all about just thinking that "I am only one man, I only have a few hrs a day... however I need to do the job of 10" and instead of giving up building something that lets you do just that.
I find the in corporations where you can throw more people/time at the problem is where it starts to fail. I can always "hack" something up fast, and add a few programmers to make it faster, but the trick is to not add anyone and still meet the deadline (or a bit over, but that gets covered by blowing all other deadlines away).
GitHub is no different. They had an itch, scratched it, turns out other people had the same itch.