Simple CMOS Analog Square-Rooting and Squaring Circuits
Because its Vsourcedrain is nearly zero. That is triode region.

Given both FETs have the same gate voltage, the Vgs of the upper FET consumes most of the available drain voltage or the upper FET will not be diode connected.