Some schools also have the knack of "box ticking" to get extra funds and grants.
One of our local state comps has enjoyed, literally, millions of pounds of EU and lottery grant money because they've converted themselves into a language specialist school. It's just about trebled in size and during the extensive building works, there were often signs up showing the supporters, which always included the EU flag. We looked around at the open day, and their facilities were simply amazing, virtually everything brand new. Every few months, there was a news release in the local press announcing another new project costing £xmillion backed by the EU and/or lottery money, whether it be yet another sports hall or pitches, or a new language block with state of the art audio/visual equipment, or a new drama block with theatre. They also tick the disability boxes so have jumped on that band wagon to get improvements throughout the school to make it more accessible, but also getting new buildings/equipment to benefit everyone on the back of it. Trouble is that they get crap Ofsted results and have a massive bullying problem, well known locally, to the extent that loads of people take their kids out to other schools, once they've scratched the surface and see the reality behind the glossy exterior.
Compare that with our state grammar, in a deprived area, which is ancient and crumbling, the library roof leaks, drama and indoor sports are done in the school hall. Yes, they have a swimming pool, but it's also ancient and has been condemned so never gets used. Trouble is, because it's selective, they can't "tick the right boxes" so simply don't get the EU and lottery money despite numerous applications over many years. Nor can they tick disability boxed for buildings improvements because it's spread over several sites, on a steep hill, etc., so it's pretty much inaccessible to people with mobility issues to the extent that the usual "modifications" such as lifts, ramps, etc., wouldn't help, so they can't even get funding for that kind of building improvement either (which usually extend far beyond the accessibility issues themselves). As it's in a deprived area, the typical parent isn't rich so it doesn't enjoy the parental backing of those in wealthy areas. But, none of that matters, because they get the results, primarily because the kids have the "want to learn" attitude, so you don't need the bells and whistles!