Thank you Jony for pointing again to this fact because there is a common misconception (including KrisBlueNZ, see his post#38) that the BJT would be a CCCS.The main idea behind current mirrors is that the output transistor behaves just like a VCCS (Vbe control current source). So by changing Vbe we change (set) Ic current. ...........
Because the only things that matters here is Vbe vs Ic characteristic.
And the first transistor (diode) job is to convert this input current into Vin (Vbe) voltage and nothing more.