CMOS inverter explanation (low level output)
For a N-channel MOSFET, as the name implies, if the Vgs > Vth electrons are attracted below the gate forming a channel composed of electrons proportional to the applied Vgs voltage until saturation. That said, it creates a low impedance path between Drain and Source, meaning that the Drain end is connected to the ground.