When renting we have always had to have the carpets professionally cleaned upon vacating and show the receipt.

Not sure if it has anything to do with us having cats that come inside ? We always have to have pest control done for this reason.

It has always been in the lease too.

Good luck !