The logic inverter is a Cmos type with an extremely high input impedance. The resistor adds AC and DC negative feedback so the inverter becomes a linear amplifier.
It is somewhat similar to how an op amp works. If the input voltage goes up the output goes down, and visa versa. A balance is therefore reached somewhere in between.