The first chart is all phones, not just smartphones and HTC only sell smartphones. You either have to sell lots of dumbphones too (like Samsung and LG) or sell a whole bunch of smartphones (RIM and Apple).
I'm not sure whether Motorola is there mostly on the strengths of smartphone sales alone or combined with dumbphones.