Banking is a public-private partnership
Banks operate on public subsidy: deposit insurance, central bank lending and implicit bailout guarantees lower their funding costs and absorb their risks. Because the state underwrites the industry, it has a legitimate claim to require that banks serve the whole public, not only profitable customers.