They were basically used to mirror the same value of current, by generating the similar condition of region, Vgs and Vds. However lwe can use it to amplify by increasing or decreasing the m factor.
As told earlier used for biasing the various circuits.