Except your analogy is asinine, and in this case it would be more like paying rent for 30 years in an apartment but not being on the lease so they unceremoniously kick you out.
Also a tenant in your situation would most certainly have rights to not be "unceremoniously kicked out" - both a time period before they'd even be legally expected to leave, and also legal protections against being forcibly removed even if they didn't leave at that time.