Logic gate using transistor
The question is not whether current flows, but what the voltage is.

When both A and B are false, C is connected only to +5V through the pull-up resistor.
When A or B is true, C is connected directly (without much of a voltage drop) to ground through one or both transistors.

See open collector for pratical applications of this circuit.