Guns were not created for sport; sport only became a use of the gun. Guns were first and foremost a weapon... a machine for killing (either to gain military advantage or to make getting dinner a bit easier). The sport came later.
HowStuffWorks "Who invented the first gun?"
The History of Firearms - A Timeline
Gun Timeline | History Detectives | PBS
History of the firearm - Wikipedia, the free encyclopedia