To run a steam engine, coal or oil are burned in a firebox. This heats up water in the boiler, eventually turning it into steam. Since steam is compressible, so much of it can be generated in the limited volume of the boiler, that it becomes highly pressurized.