You have to not use the property for a long time. You have to not bother checking on it and seeing that somebody else is using it. In the modern context, you have to not pay the property tax for it - for years and years. You have to take no action to evict somebody else who is on the property and using it.
What it amounts to is you basically have to abandon the property. Governments adopt policies like this to “quiet title” so that they don’t have a situation in which people suddenly appear and say “hey this dead from 1842 shows this property really belonged to my ancestor and therefore it should be mine”. If they allowed that, it would discourage investment in property but doing things like putting houses or buildings on that property. Imagine if the various Indian tribes could go to the court and legally dispossess tens of millions of homeowners of their homes.....
I understand your points and don’t disagree.
If I pay the property taxes on time and don’t let the property become a nuisance to the surrounding properties, then I am only saying that the government should have nothing to say about it.