Early cars were called horseless carriages for a reason.
Car bodies were carriages for few first decades of car history. So if you can fix and maintain horse carriage - you can maintain car carriage.
Engines were simple too and designed to be maintained in a field environment with few tools. So it’s reasonable that this skill was learned, especially by mechanically inclined people.