It’s space fantasy, right? Knights have swords to fight each other. Adventuring parties have weapons to kill the monsters in the wilderness. Pilots have (guns) to fight each other, and spaceships have weapons to kill the (space) monsters in the (space) wilderness.

I guess you could treat it as a frontier analogue. You bring your muskets because (a) you’ll need to kill food to survive and (b) you never know when you’ll be attacked by a bear or a, uh, indigenous person who resents your invasion of their territory. Not a failed state, but a pre-modern proto-state.