One would assume that if the law was intended that everyone can have a bank account, then ultimately one would be able to appeal through the courts. Which are not perfect, but are a hell of a lot better than a company just being able to make it's own decision without having to justify it.
Of course, you could have a governmental setup without this aim. And you could regulate the private market. But generally speaking governmental organisations are held to higher standards and have less incentive to be non-compliant.