If the bank forecloses on a $200,000 loan and gets a house that can be sold for no more than $75,000 and maintained until the sale, it is not making money. Each case depends on the specific mortgage and the specific house.
I don't think banks actually give a damn about providing anyone with a house. Banks are about money, not real estate.