The steam pressure for a steam engine comes from a wood, coal, or gas fired boiler. Hence, the boiler must be able to withstand the pressure delivered to the engine. Horrendous explosions have occurred where boilers have not withstood the pressure. See the following video. (Please post questions or comments.)