"h" and "g" in Russian?

Why is the "h" in words of foreign origin transliterated to "g, as for example Gitler ( for Hitler) or Gidrostantsia? Russian contains an approximate equivalent to "h" (x), so why did this happen?
3 answers 3