The story
In each sense, from a grouping of things in sets of four, four, and two: in football, players in certain positions; on locomotives, wheels in certain positions; in the car model, four barrels (of carburetion), four gears (of the manual transmission), and dual exhausts.
Etymology from Wiktionary, CC BY-SA 4.0.