Steam engine
Why did the first steam engine spend its life at the bottom of a mine?
Because the problem to solve was water. The deeper you dig to extract coal, the more groundwater floods the galleries. The machine therefore served to pump it on site, by burning the coal you had right there.