If you read my posts again, you will see that my point was that there is no inherently "perfect" barrel length. It's a matter of compromise. Shorter barrels have some advantages, and longer barrels have other advantages. It's a matter of finding the optimal balance for the particular cartridge and shooting event. My point, however, was that in any event where movement of the firearm is a significant concern, then shorter barrels offer a significant advantage because they allow the bullet to leave the barrel more quickly, which minimizes the effect of the movement of the gun. That is particularly true with slow moving projectiles, such as you have with rimfire competitions. In events like benchrest centerfire, the potential for rifle movement is far less, and the bullet is moving much more quickly, hence the advantage gained from the shorter barrel is very slight and may well be offset by the disadvantage that comes from the lower velocity. Longer barrels provide higher velocity, which decreases time of flight to target, and minimizes the effect of wind. Therefore, benchrest rifles tend to favor longer barrels than rimfire silhouette rifles.
I'm not a biathlon expert, but I'm confident that the barrel lengths used were arrived at by a lot of trial and error to find the best trade-off. If you're not allowed to use optical sights (which you're not in biathlon, if I'm not mistaken), and you can't use a barrel extension to get your front sight out beyond the muzzle, then a significant disadvantage of a short barrel is the reduced sight radius it provides. Of course, just as a 48" barrel would provide a great sight radius but be difficult to shoot, a 24" barrel likely has more disadvantages in a biathlon rifle than the 21.6" barrel on the Anschutz you mentioned.
The bottom line is that longer barrels are NOT inherently more accurate than shorter barrels. It depends entirely on the situation -- sport, cartridge, sights, etc. All else being equal, however, shorter barrels are stiffer and allow the bullet to exit more quickly, and those things are advantages to accuracy. Whether they are offset by shorter sight radius, lower bullet velocity, etc., depends on the situation.