It is an established fact that deforestation was the consecuence of coal mining. Britain consumed way more wood as tunnel/mining frame than as firewood.
It was known and used, just that there wasn't enough incentive for massive extraction so it wasn't searched. It's population growth and in conjonction with it urbanisation, electrification and railroads that lead to the search of more efficient energy source.
Nothing really prevented people from using coal earlier and they did but keep in mind that town where smaller and people scattered about in lots of smal villages. It was easier to collect wood.
Remember that by the end of 18h century, only a handful of cities barely reach a million inhabitant.
The first steam locomotive was built by a cornishman. He was interested in pumping out mines, but not coal mines, as they didn't have coal. The resultant need for efficient use of the imported Welsh coal may have been the driver of the next evolutionary step and then allowed the miniaturisation which led to locomotives.
(The Cornish steam engines also come up a lot due to them doing a lot of improvements that Watt held back with patent shenanigans, and a collaborative approach to their improvements)
Before electricity was a thing the steam engines were also used to pump water which then ran machinery hydraulicly, like cranes. Which piggybacked on improvements in civic water supplies.
Look, we use wood at home now, and given the chimneys in this house everyone else here has always done that too (or the house wouldn't have made it).
My point is that this sort of transition isn't immediate and universal. Some people had the motivation and opportunity to use coal, there were lots of advantages and it spread... slowly... at the same time the infrastructure to extract and distribute it developed.
It was known and used, just that there wasn't enough incentive for massive extraction so it wasn't searched. It's population growth and in conjonction with it urbanisation, electrification and railroads that lead to the search of more efficient energy source.
Nothing really prevented people from using coal earlier and they did but keep in mind that town where smaller and people scattered about in lots of smal villages. It was easier to collect wood.
Remember that by the end of 18h century, only a handful of cities barely reach a million inhabitant.