In winter steam contributes a fairly high proportion of its tractive effort, say 15 per cent, to heating the train. Diesels have at the moment separate oil-fired boilers which are somewhat chancy affairs, and only electric locomotives grab unlimited power for heating which does not affect their punctuality.
Source: wiktionary