Humor at its base is making fun of something you know. Twain did it with American society of the Victorian era. It wouldn’t have made sense for Twain to mock the Ottoman Empire.