Germany was (and is) a parliamentary system. Hitler was the leader of the Nazi party, and the Nazis were elected to a plurality of the seats in the Reichstag.
The standard practice at the time was that the leader of the plurality party got to be Chancellor. To not have done so would have been weird and undemocratic.