The airline I work for has several leased aircraft. When the lease is up, it's a requirement that the engine/airframe be in good condition. You don't simply return it like a hire car. Generally the aircraft will go into heavy maintenance pre lease return.