It's partially a glitch. The initial design of the game was to let you create any type of nonsense your heart desired. Of course trying to make it where the customer would accept it based on what they requested became challenging.
What would you classify the weapon as? Dagger or hammer? Hamgger?