The internal combustion engine (ICE) was not the only, nor the default, means of propulsion for early motor cars at the beginning of the 20th century. Indeed, in the early 1900s, engineers and manufacturers initially divided their loyalties precisely between three competing technologies: the ICE, steam power and electricity.
Steam power, though well understood, relatively sophisticated and, at the time, ubiquitous in industry and other forms of transport, quickly proved less practical for use in motor cars. It therefore fell to internal combustion and electricity to vie for supremacy.