If they sell, they need to buy again at a higher interest rate. So they can sell at a profit but then monthly payments will be higher.
Anyway, this is only 1 scenario. Urban areas are hit hard NYC/SF and sellers are sitting out waiting for recovery, so they rent them out.