It's a meaningless, feel-good rule. Every country has countless carve-outs. To give you a trivial example: in the US, you can't get a passport if you owe more than $2,500 in child support.
ex:
overstaying in Thailand results in a on-the-spot fine
China lately has exit checks when traveling to SEA (they try to intercept people traveling to scam centers)