There are special ways to heat treat barrels to solve the wandering poi as a barrel warms up, there is also a "cryogenic stabilizing treatment" which IMHO isn't quite as good as proper heat treatment. Both are expensive, some factory rifles have said barrel treatments, but they're also expensive.
Most of us just don't require that type of performance, unless we're at the range working up loads.
Then there are the "unicorn" firearms that just shoot very well, cold or hot. I've yet to come across one in chambered in a cartridge I would hunt big game with.
I'm showing my age here, but when I first started shooting in the sixties, a 4moa rifle was considered to be an accurate rifle. Mind you, back then most hunters used "common sense" and didn't shoot at game animals beyond 2-300 yds.
Today, a 4moa rifle is scoffed at.
The thing is, most of those older 4moa rifles responded very well to modern powders, bullets, and primers that we can get reliably today.
The advent of the "Juenke" gauge, that measured birefringence differences between jacket thicknesses, opened up a lot of eyes, now bullet jackets are extremely consistent in thickness.
WL, most rifles will shoot well for the first 3-5 shots, then they start to open the group, but as the barrel reaches a certain point of temperature, harmonics settle down, and the rifle starts shooting well again, and will keep shooting well as long as the temp is kept consistent.
Most of us here have shot extended strings at one time or another, either because we didn't know any better or in some cases had the impression that the "sweet" spot, shooting from a barrel hot enough to burn your fingers would still be the same when the barrel cooled again.
It was a learning curve.
One spot we used to shoot a lot of gophers on, was a great learning experience. The population of the critters was likely a few hundred thousand, on a clear cut, which was going to become a hay field, but the farmer didn't have time to complete the job.
We would shoot anywhere from 500 - 1000 222rem or 223rem every day. Those barrels weren't heavy match barrels, because we had to move around a lot. As mentioned above, the average groups soon opened up from a half inch to 1.5 inches and stayed there, until the jacket fouling became extreme, and we just had to stop for cleaning.
Most people couldn't afford to shoot that much for a couple of days in a row. We didn't use surplus ammo, because it just wasn't accurate enough.