In this circuit, the RF AM signal is amplified by the transistor, detected, and applied back to the input of the transistor. Then, the same transistor amplifies the detected signal. Hence, one transistor has a function of two in this circuit. Even more: this circuit has a built-in automatic gain control: for signals with higher amplitude the gain is lower.