There's probably a good case to make that it reinforces bad ideas about history, but it's also an easy way to give Western readers unfamiliar with the given region's history a sense of the setting. "Oh, it probably has knights and princesses, or something like them. I bet they live in castles, while everyone else…