He was not speaking contemporaneously. The author who wrote the lines he dutifully read didn’t know any better, and there is no way Obama would know. He’s as likely to know that the Nazis ran those death camps as he is to know that the number of US states, that Austrians don’t speak Austrian, or how to pronounce the word “corp.” He’s a dunderhead.
Extemporaneously.