This seems like the key.
You don’t suddenly owe taxes you maybe can’t afford when inheriting the family house.
You can afford those taxes when selling it for a massive profit so you should owe then. Likewise for realizing gains by taking a loan