Those rankings are for 15 yr olds. The US definitely is #1 when it comes to high-end university schooling.
Even among high schools and prep schools the nation-wide US average might be mediocre in public schools but when it comes to the higher-end private schools the US is still easily #1
Who does better than the “West” at non-elite education then? Surely non-elite must include a lot of people who never go to university. The PISA or TIMMS rankings are about as good a ranking of those as you’re going to get.
https://en.m.wikipedia.org/wiki/Programme_for_International_...