When grades started to matter in middle and high school, my competitive side came out. I decided I was going to get better grades than most because that would lead to a future with more options. I also cared more because my peers cared more and I was socially self-conscious. When I started trying harder, I started learning more and became genuinely interested in subject matter. My grades lead to me getting into a good college where students were far more motivated on average than my high school. That ended up being where I met my best friends and eventual startup co-founder.
Did my best learning experiences come from studying for tests? No, they came less structured classes and from my own programming projects during and after college. However, I do feel that grades and standardized tests lit a fire under my booty to try harder and eventually led to me meeting more motivated people.
I finish high school (last 2 years) in Florida where I had to take the FCAT. The first thing that I found dumb about this test was that it wasn't at all tied to the subjects I was learning. It was meant to test more generic level concepts, in turn this exam was a pure joke and proved nothing other than a lot of kids have trouble writing an essay.
My point is, standardized test should be used to keep similar classes at different schools from diverging too much curriculum wise. An algebra class at school X shouldn't be completely off from the same course at school Y. Testing random problem solving skills and language isn't going to help with that.
My daughter goes to a school that does well by these measures. It _is_ a good school, but the teachers basically teach to the test* -- given the rather punitive structure of the laws, they don't have much choice. Performance is directly tied to funding. Is that really the best way to teach kids? I'm doubtful.
I think we do need good teachers, but I'm not at all convinced that test scores are a good way to measure that, anymore than lines of code are a good way to measure programmers. I do want kids to learn, but I'm not very convinced this is the best route to that.
I don't think there is any easy solution. Kids with parents who value education tend to do better -- that's a huge factor. Resources certainly help; those of us who care tend to live in better school districts (often with higher tax rates) -- is that really a sensible way to run the schools? I mean, it works for me, but why should we under-resource kids whose parents don't care about education? But there is no doubt that you can pour money at this problem and get nowhere if you spend it poorly. (That's true of all problems, though.)
All this emphasis on education can go overboard. Where I live, even in grade school they get only one short recess a day (unlike the two, slightly longer, ones I grew up with). Does that make sense? In a nation with a national obesity epidemic? And, even in very early grades, they come home with a LOT of homework. When are they supposed to go outside and play?
*I don't mean they literally teach the tests, but they certainly spend a lot of time structuring their materials around the way test questions are phrased, and in teaching kids test-taking strategies. Do I think fourth-graders should need to learn how to take tests? No.