I think the quality of GitHub compared to other code hosting systems is probably why git is so popular. Mercurial is still used in plenty of places (eg Mozilla, Facebook). And integrating with GitHub/other things which are integrated with GitHub seems like a major factor which convinced open source projects to start with/switch to git.