Your definition of republic is incorrect. The words do not oppose each other.
A republic is a form of government in which affairs of state are a "public matter" (Latin: res publica), not the private concern of the rulers, in which public offices are consequently appointed or elected rather than...