So the very out-of-universe answer is: Because Tolkien decided against it. So the better question, and also the one we can use some source material to answer, would be why Tolkien decided against it and wrote a classic fantasy story.
There's no Industrial Revolution in Anglo-Saxon mythology. Including it would have jarred in a dyschronistic way.
More than that, fantasy is based on nostalgia for heroic simplicity and straightforwardness, with a dash of magic to instil some child-like wonder.
The Industrial Revolution operated on a completely different narrative and moral basis. It was more about colonisation at home, using mechanisation to organise forced labour.
It's hard to be a brave Romantic hero in that kind of setting.
Generally in the Middle-Earth, the parts we see, are post-apocalyptic environment constantly wrecked by wars and depopulated so hard most people are too busy raising crops to survive.
It has that, given that almost everyone is enslaved.