In earlier wars, most troops were basically a militia wearing whatever they had with them. This required mass-produced wears and arms for both sides. After the war, to recoup some money, they sold the supplies in stores. Thus the military surplus store was born.