This 9v battery contained six cells stacked like a layer cake
Picture of a disassembled Duracell 9v battery. Below the terminal assembly is a clear plastic case where you can see six sets of stacked rectangular terminals and fillings.
I had an old 12v power tool battery die, so I took it apart to find 8 generic AA rechargeables wired together. I suspect lots of batteries are multiples of 1.5v (9/12/18) because they're just stacked smaller cells that are already mass produced.
Yeah they had nicad or nimh batteries donated together to create the battery pack. I had an old shaver that was the same way. Laptops with replaceable batteries do the same things
Current power tools still do this, but with 18650 lithium cells, or some larger variant. But now the trendy thing in power tool batteries are the pouch cells, like the kind found in cell phones and slim laptops. I gotta they're more energy dense, since there's less of an air gap between cells.
There didn't used to be efficient ways to convert DC/DC voltages up in electronics (you could drop it, though also not very efficiently), but nowadays there are technologies to do that and hundreds of choices of integrated chips that do most of the work along with a inductor and a diode (these being the very minimal set of parts) with about 90% efficiency, so stuff that needed higher voltages and had to use multi-cell batteries for it in the past, now can be done with batteries that output much lower voltages along with one of these voltage converters (called "boost converters").
(For those in the know, yeah there was already something before for lower currents called voltage pumps, using only capacitors, but those thongs couldn't handle higher currents).
Anyways, all this to say that manufacturers can now choose to use smaller and simpler batteries for the equipment they make and convert voltage up in circuitr cheaply and with minimal losses, hence you're much more likelly to see that when it makes economical sense for them (for example, by being able to use the more common battery types rather that having to have unique custom batteries, as the latter are more expensive since they do not get the same savings from the economies of scale of mass production).
Different materials used as basis for different battery techs will produce different voltages when the ions go to the anode (something to do with the energy that can gained when the ions combine with the material of the anode being only one of a fixed set of possibilities due to the available free bands in the atomic structure - please check Wikipedia for a proper and correct explanation rather than my vaguelly remembered one) which is why Lithium batteries are always around 4V without extra electronics to drop the voltage (which make them less efficient) and voltages above that require putting multiple cells in series to add their voltages.
As it so happens, the techs for the Carbon-based, Alkaline and Cadmium all have this voltage be around 1.5V (though you might have noticed that the Cadmium ones are a little lower than 1.5V and Alkaline a little higher) so you need 6x cells in series of batteries of that tech to get 9V.
That I know of, there is no consumer battery tech which has a single cell voltage of 9V and I don't even know if there is any substance or combinations of substances that makes that possible at all.
Cheap low-capacity 9V batteries are still 6 AAAA cells. The flat cells allow higher capacity in the same space, so you find them in the batteries that advertise themselves as long-lasting.
Open any lithium battery pack and you’d find those cylindrical lithium cells. Even a Tesla battery has those. Only things that need to be flat like a laptop or a phone use a pouch battery.