A lot depends on how you use a rifle.
Shooting one round every now and then from a cold barrel as we do hunting is very good for long term barrel life.
But take 100 rounds and rattle them off as fast as you can and you will start getting barrel wear. Once steel is already hot it will burn much quicker. Think of forging a piece of steel. If its cold, it takes a while to get it to start glowing red, but If it’s red hot, it doesn’t take much more heat to get it sparking and burning.
Also depends on the ammunition and powder used. I think, based on what I read, that modern powders such Vhitavouri are much kinder to barrels than the IMR4831s which were developed in WW2. Old cordite, as used by the Brits, burned very hot. I suspect it is these old powders that gave the likes of the 22 Swift, 240 H&H, 264 Win Mag a reputation of barrel burners.
Barrel steels vary hugely. A Remington barrels of the last 20 odd years are made of chocolate, although tend to shoot well, whereas Tikka, Sako hammer forged are better.
Finally what is your definition of worn out? For some a rifle that no longer produces 0.25 moa groups is shagged out, but for others 2 moa is more than adequate.