It's so the reader can imagine themselves in the same situation. OR, so that you can mix things up by bringing modern knowledge/morals/whatever to a typical fantasy. The second one is so cliche that it's barely a functional trope at this point though, so mostly the first one.
Sometimes it's...