As a consequence guns can be used as a deterrence as well. Since their primary purpose is to cause great harm, people that value their lives and not commit stupid actions.
That's not true at all. An ar15 was specifically made for war against people (lots of them), and then refined for war against people. A pencil was made for writing things down.
They said “guns are made for killing people” which is absolutely a true statement, many guns are specifically made for killing people.