Texas schools aren’t ranked high generally because Texas has a very high proportion of minority kids - in fact it has a majority of minorities, of the kids enrolled in the public schools.
That said, minority kids (and white ones too) do much better in Texas on average than than the average of their peers nationally.
Texas has been dealt a relatively poor hand in education, but has done exceptionally well for all that.
Agreed.