First, because it's used to generate the URLs of links in your templates (that's the "URL generator" part) and second, because it decides which code to execute to respond to any given request (that's the "URL matcher" part).