A claimant asking for an equitable remedy must first do what is fair to the defendant. The court may make its help depend on that fairness.
A borrower asks the court to release his mortgaged land. The court will do so only if he repays what he owes.
Pair with the clean hands maxim.
Be fair to get fairness.
Equity helps those who are fair to the other side.