This used to be a common landlord practice to cap recovery of costs and attorney's fees in the lease contract. It was not as widely recommended as a similar approach of inserting a clause that each side will be bearing own fees (or to be silent on the subject), but a popular choice nonetheless. The landlords thought to reserve an option to recover at least some of the expenses they would have spent if an eviction will be required, while limiting the amount the tenant could recover in the case there is a lawsuit against the landlord.
This provision will no longer work, as explained in in Aviles v. Shenon (2026) B342634 (November 2, 2026), where the court held that a clause “In any action or proceeding arising out of this agreement, the prevailing party between landlord and tenant shall be entitled to reasonable attorney fees and costs, collectively not to exceed $1,000” is not enforceable as to the costs, while upholding the fees' portion only because there was no independent statute to provide for the fees recovery.