The iPhone 5 took all of that and, amazingly, squeezed it down into a much thinner package.
Apple could have made a better camera by staying with the same depth as the iPhone 4S, but that wasn't the priority.