Lessor : Sales type lease

Why does the lessor receive the asset back from the lessee at the end of the lease term? Since it is a sales type lease i thought the lessor would be selling the asset to the lessee at the beginning of the lease term and not getting it back