In the US at least, mortgages are on both the land and the buildings.
Getting easy details like this wrong suggest that you don't actually understand how property works.
I get that you have a theory with properties that you and some equations, but that doesn't imply that your equations accurately reflect reality.
As the saying goes, reality has a surprising amount of detail.