If you are traveling to the moon, can you think of any reason to bring a gun  ?
-Emergency propulsion
-Protection from hostile people or animals, when landing back Earth 
-Bullets have their own oxidizers, so gun and used in emergency situations as an explosive