"... the Defense Department shut down production last year after spending $67.3 billion on just 188 planes"
http://www.latimes.com/business/la-fi-advanced-fighter-woes-...
They did not want to compromise the stealth and they wanted the plane to match the two-plane doctrine US forces have used since 2nd world war. Basically you got your agile and light fighters that clear the skies, and then you got the heavy planes with superior firepower that mop up the rest. So yeah, that's what they got.
F-35 attempts to be made from cheaper parts and with cheaper costs, and lighter. That means a lot of pea counting, and using simply worse parts. No wonder that program has had problems.
Operationally, F-35 is barely stealthy, and it doesn't fight that well. I'd rather sit in the cockpit of F-22 at this point.