Question: why pmos is pull up?
Answer: Pull up means getting close VDD. So PMOS has VDD as source, naturally when input is zero drain would be pulled up. When output at zero PMOS turns on, it will be pulled high. Pull down means bring output to Zero from One too.