It's a play on the classic spaghetti western trope of a mysterious/dangerous drifter coming into town and turning out to be it's unlikely hero who saves it from whatever ills it. You see it in classic samurai films too as a wandering ronin as the two genres are surprisingly intertwined.