The lien and the debt are separate legal entities. Although the debt has been discharged, the lien is still good. Consider a lien as if it were a car loan. You can discharge the debt for the car loan in your bankruptcy and you owe nothing, but does bankruptcy give you a free car? No, because unless you pay the lien on the car, the lender's interest in the car lets them repo it. Hope this perspective helps!