Why was the steam engine important to the industrial revolution?

Ait provided a source of power for many kinds of machine.
Bit made factory working conditions safer for workers.
Cit replaced pollution-producing coal.
Dit was less expensive to use than oil or gas.