Not entirely correct.
When you buy a POS the creditor is legally obliged to "attempt" to get market value because they are forcing the sale of the borrower's property to recoup their debt. Same applies to any loan for a car or any other chattel.
Under Foreclosure, the lender is taking title and ownership of the property as settlement in full for their debt and releasing the borrower from their obligation. It is a longer process but once done, the borrower has no further interest in the property, no further obligation to the lender and the lender can do whatever they want with the property (sell it, give it away, live in it...).
The other big point of error is that you buy the property 'free and clear'.
When you buy a POS property, the lender almost never warrants that the property is free and clear. The onus is on the purchaser to search title up front to ensure there is no other mortgages, leins or encumberances. Once the deal is firm, you are obliged to close even if you find out that there is other leins on the property.
Even in a normal home purchase, you don't have an iron clad guarantee that you are buying 'free and clear'.
All you have is the sellers word. That is why lawyers search title and recommend title insurance in virtually every transaction.