Addressing Star Wars now, its relevant that the galaxy at the start of the first film is pretty much Europe in 1947. Everything has been raked over many long year’s of war, there’s wreckage everywhere (both material and sentient) and there’s a lot of leftover ordinance all over the place. Probably no end of opportunists taking advantage of the disorder, those who take up arms to protect themselves from those opportunists and plenty who are a little of both.
As I type that, I just realized it’s kinda creepy that Star Wars across its many eras always seems to be in a state of aftermath.