Should it though? You can buy a piece of real estate without living there, e.g. because it's a rental property, or maybe the school is announced to be shutting down even though it hasn't yet. And in general this should have nothing to do with the bank; why should they care that somebody wants to buy a house they're not allowed to be in?
Stop trying to get corporations to be the police. They're stupendously bad at it and it deprives people of the recourse they would have if the government was making the same mistake directly.
To me any other viewpoint inevitably leads to abuse of one group or class or subset of society or another. If they are legally allowed to discriminate in some ways, they will seek to discriminate in others, both in trying to influence law changes to their benefit and in skirting the law when it is convenient and profitable.
I'm not sure we can write that much more COBOL.