The Wizard Was Partly Inspired by an American Robber Baron
The Baum family did not get along with John D. Rockefeller of Standard Oil, whose unscrupulous attempts to squeeze his competitors out of business were, to say the least, not appreciated. As a result, Baum loved poking fun at the oil tycoon.

The character of the Wizard, in some ways, is actually a reflection of Rockefeller: A terrifyingly powerful figure who possesses an outsize control of the world around him (but who is, when all is said and done, merely human).
Before he was writing books and short stories, Baum was working as a traveling salesman for his family’s oil company. The corporation’s No. 1 product was an axle oil called “Baum’s Castorine,” which was advertised as being “so smooth it makes the horses laugh.” It’s in this context that the Tin Woodman (or Tin Man, as he’s called in the film) was likely invented. When Dorothy meets the Tin Man, he badly needs a can of lubricating oil. It’s almost as if Baum couldn’t help himself from making one last sales pitch!
The book and movie contain other topical references often lost on modern audiences. The book’s Tin Woodman, for example, was a trope in political cartoons of the late 19th century. These “tin people” were a political allegory criticizing the abuses of unfettered capitalism: A symbol of the human worker treated as a machine.

While it’s no surprise that Baum evoked imagery commonly seen in mass media at the time, it is surprising how pointed his commentary is. After all, what does the Tin Man — a figure that represents the dehumanization of industry — desperately search for? A heart.
https://www.interestingfacts.com/wizard-of-oz-facts/YTfIcg55YwAH_K9a
