It makes sense here because the setting is technically a game. TONS of games set in western-style places have katanas (and samurai armor) added, because people like them. This happens especially in games made by Japanese people, which this was. Even Elden Ring has them.
Some games give new lore...