Automobile parts terminology can be confusing and/or misleading and usually has more to do with form than function. The term 'coil' is the commonly accepted contraction of 'ignition coil' which reveals no clue as to the function of the part.
The function of what the automobile industry calls an 'ignition coil' is the same as what the science of electricity (which predates horseless buggy technology be several lifetimes) identifies as a transformer. The name transformer suggests something is being changed from one form to another and that is exactly what a transformer (ignition coil) does.
What is changed is your vehicle's battery voltage from 12V to a value high enough to jump or arc over the 0.050" spark plug gap under 10X atmospheric pressure conditions. From 12V to something in excess of 20,000V.
If you notice the cylindrical device bolted to the top of your neighborhood utility poles, that is a transformer and in automobile speak it would be a coil.
Don't get me started on shock absorbers commonly called shocks.
Are we muddy yet??