They were government monopolies under the control of the same government ministry, who like most Japanese government bodies set up a museum.
Highly recommended, btw, second only to The Meguro Parasitological Museum for quirky museums in Tokyo I have been to. You can find the official page of the Tobacco and Salt Museum here and lots more quirky museums here.