The story
From bull + pup. The firearms sense originated from firearm designers in the United States during the 1930s. The unconventional configuration of bullpup rifles was compared by analogy to bulldog puppies, which were considered "squat, ugly, but still aggressive and powerful".
Etymology from Wiktionary, CC BY-SA 4.0.