This question is not usually answered in conventional teachings of logic circuits. Transistors are used to build logic gates. Transistors can be easily used to represent 'high' or 'low' voltage and hence are widely used in building logic gates and consequently, logic circuits.