I quite obviously did not say that the "sole purpose" of handguns was to kill people. I did say, however, that it is the primary purpose, and your own posts confirm the statement.
The number of bodies is irrelevant to the goals driving the design of the weapon. As I noted above: the driving design principle for handguns is to kill things -- people, mostly -- at short range. And of course, most people do buy handguns to give themselves the ability to kill other people. (That is what "self defense" boils down to, after all.)
The fact that there are not millions of handgun deaths simply shows that most people are not particularly keen to actually use the weapon for killing. That does not alter the fact that a handguns is designed to do just that, should the gun owner decide to fire it at somebody.