but eating away of steel due to the temperatures of the high-pressure gases melting and carrying away barrel steel every time the gun is fired.
I've heard a different theory where the hot gasses harden a very thin layer of steel in the throat of the gun which makes the metal very brittle in comparison to the relatively flexible and resilient barrel metal. Successive firings cause the hardened metal to flacke or chip away.