The story
From tin-pot (“of inferior quality, shoddy; insignificant or minor, especially in an amusing and petty manner”) + dictator, referring to the cheapness and poor quality of pots made from tin or tin plate.
Etymology from Wiktionary, CC BY-SA 4.0.