Nowhere in there does it say that two witnesses are required to establish guilt in all cases.
That is correct. Guilt is a verdict. In this hypothetical case, the testimony of 2 witnesses was necessary to establish the truthfulness of the accusations of idolatry.