It's called " economy of scale" , and as you correctly state,it's the sheer volume of beer/wine/ spirits that the Wetherspoons group buy that allows them to sell beer at a very competitive cost.
Breweries etc. fall over themselves to trade with them because of the vast quantities they can sell...