> why would you clean them when you're about to sell the house? So they look good and the potential buyer sees something that looks to be in good condition and working well.
Exactly the same reason you should probably clean the rest of the house when you're selling it. Theoretically, the price of the house before cleaning should be equal to the value if the house after cleaning, minus whatever the cleaning costs. In reality, you'll get much less for your house without cleaning it, because human emotions.
If I tour a house with pet urine stains all over the carpet, it's only logical to conclude that the owner is likely not maintaining the rest of the house to a very high standard.