Some people had 100% valid visas that were revoked upon attempting to enter, at the (arbitrary) discretion of an immigration officer for years old non-criminal issues that had been resolved.
They were then detained for days rather then be allowed to exit the country.