A lot of that has to do with who your kid goes to school with. If we take equally funded schools (in WA that’s easy since education is primarily funded by the state), the results are still different: districts with richer families do better probably because they get more support at home, but even lower income students do better since they feel like they need to keep up with their classmates.