Just because the average quartile in the US falls in the bottom quartile in Singapore doesn't mean that the top quartile falls into the average quartile in Singapore.
While on average here the system is pretty bad, the US also tends to produce the people that end up making some of the largest contributions to science and math.
There is very good education available here, it simply isn't available to everyone. The outliers are still performing on a very high level.