@fansy,
"Comes with the territory" is a phrase. It means that something is included with something else. I believe that the phrase originated from sales. A salesman would be assigned an area in which he would sell his products. That area would be called a "territory." Anything that would be included with the assignment of that territory (such as an office or a car) would be said to "come with the territory."