The AR-10 Carbine buffer was developed first. They needed to keep it the same weight as the rifle buffer, but make it shorter. Tungsten was the answer, and with the outer body still made of aluminum, three tungsten sliding weights of the appropriate length came up to the same weight as the rifle buffer. After THAT, it was determined that the receiver extension had to be 7 5/8" internal depth. The same operating spring was able to be used.
AR15 Carbine recoil systems came along later, the length was kept at 3.250" long, and the receiver extension was spec'd out to be 6 15/16" internal depth. That buffer needed to be lighter than 5.4oz on the original Carbines, so the tungsten weights were replaced with lighter steel weights. The AR15 needed it's own design for a recoil spring, because the rifle spring was far too long.