The Oxford English Dictionary has this definition for **to keep** :
> To carry on and manage, to conduct as one's own (an establishment or business, a school, shop, etc.).
This sense of the verb well predates Twain, dating back to Middle English.
Two common expressions of this form are **to keep house** and **to keep (a) shop**.
Therefore "keep hotel" simply means **run a hotel**.