What kind of a country is this anyway? Different areas have different rules and apply them ias they see fit.
In Alicante jurisdiction, it appears that not having had "The Padron" before 2020 automatically disqualifies anyone from obtaining residencia. So, owning a property for 20 years, improving that property, maintaining everything about it to a very high standard, having excellent banking record, breaking no laws, paying all bills, taxes etc. without fuss or delay counts for nothing.
Yet a criminal can break into a house, sell anything of value found therein, occupy it and use it as a "base" for any (usually criminal), purpose, coming and going without hindrance, pay no bills, render the place uninhabitable, yet the legal owner is virtually powerless to do anything and has no assistance from the law. Eventually, the owner may become a client of the latest "industry", paying a fee, (plus commission of course), via some nice organisation often run by known criminals.