The problem is rarely the intention of a law, rather than the imperfections of its application.
Governments are quite imperfect, and humans are a varied bunch. There are exceptions to everything , and exceptions to that. The Windrush generation is just a recent example that comes to mind: luckily, they were numerous enough to get their story heard. But people fall through such cracks every single day. Sometimes an imperfection in the law, sometimes an “overzealous” public servant.