Rarely do stories containing this term actually have anything to do with medieval history.
It's used as a rhetorical pejorative against something or other that the author believes is backwards or barbaric.