Why are two transistors or one transistor and a resistor used for a NOT gate?
If you connect the collector of the transistor directly to the voltage, you will get a short circuit when the transistor opens. Even if the transistor stay alive after this without the resistor R2 you still have a logical 1 on the output because of a non-zero resistance of the open transistor.