A number of years back, I read it in The Rifleman, the NRA did an article on barrel life. The experts seemed to agree, then anway, that the major cause of barrel "wear out" was the hot powder gases. Powder burns. With each shot the steel inside the barrel is exposed to hot gases. Some are nitrogen based... nitric oxides... The surface molecules of the steel react with the gases and become brittle, like the dried, clay chips on the surface of a lake bed. Next shot and the "reacted, brittle molecules" are scraped off by the passing bullet.
The rest is details. You work at low pressure, shotguns, low pressure pistols, black powder, .22 RF and a barrel lasts almost forever unless damaged otherwise. --Rust. Cleaning rod used wrong. Etc. And, I suspect, that lead bullets are much less effective scraping off the chips leaving them to protect during the next shot... Then there is the "grease" lubes, waxes, etc. Mr. Donaldson wrote of using a wax wad in his .220 Swift and having accuracy thru 10,000 rounds. Others have told me that Mr. Donaldson enjoyed nothing more than Mr. Donaldson...
Other end: 2 parts. i). Rapid fire. Machine guns go thru lots of barrels 'cause the process goes fast and the barrel stays hot. In some cases the barrels get hot enough to "sag" or so I am told by air field workers about military machine guns on 'chopters.
Compare the "action" in a prairie dog town... Poor barrel and no tax money to replace it...
ii). The huge cases working at top pressures. Burn more powder, cook more steel, lose more steel from the barrel with each shot.
Equally obviously, the muzzle where gases are alot cooler than in the burning area will last alot longer than the throat where the hottest gases "cook the steel" the longest. And the reason that the rifling, sticking up, gets "worn" / "rounded" in the throat fastest.
I knew a man, good gunsmith retired now, claims a friend of his loaned a 6mm/284 out for load development by a major manufacturer. Shot 3/4 inch groups. Developers shot it much and it is alot of powder in a small hole. Came back with the rifling "rounded" up the barrel 1/2 way or more... More than just "throat erosion." He thought "rebarrel." But he shot it first. Still grouped 15/16s so he put it back in the rack...
You have to set your own standards. If you are going to shoot competion, I have heard of center fire competitors that replace barrels every year (or 2) on "general principles." And not with a "factory take off" cheapie barrel... And the match .308 loads are not "hot, hot, hot" that I have seen recommended. (Some of these barrels are cut down and re- installed on deer rifles...) If you want "deer accuracy", say 12 inches or less out to 350 yards, doubt you can wear out a .243 with factory loads (unless you are stinking rich...) Now you go play in a p'dog town with one rifle and lots of ammo and --yes, I know how you swear/ promise to "pace yourself" HA, HA, HA-- you can "ruin" a barrel in a day, maybe a half day (so take 3 or 4 guns...AND ROTATE THEM! Or barrels for a TC system, like that.)
When you listen to all this and "sort it" THEN it starts to make sense. The old woodsman with a .30/30 that he has shot "a million times" (with factory ammo) and it still "shoots good, goes bang!" His gun will outlast him because he does not expect too much and it can continue to deliver to his standards. Then there is the competitor who is complaining about fouling after 5 or 6 or 10 shots... "No good barrel", when it might need break in, it might be a bad piece of steel--that does happen, but it was only marginally satisfactory from the start whatever it cost. I am nearer the woodsman (drug store type) looking up. I have standards, but to get something to shoot at p'dogs... welllllll... Where will you be?
Jack O'Connor once observed that, in his day decades ago, it took about $1,000 worth of ammo, reloads even, to "shoot out" a factory barrel and only $100-$200 to replace that barrel with a high quality pipe. So if you got the $1,000 to wear it out, how hard will it be to spend another $100 or so to start over. Inflation has increased the numbers, but the ratios still hold, pretty much. luck