NiCd cells have two advantages over NiMH: good performance at high discharge rates, and the ability to tolerate fairly long term overcharge at a 0.1C rate. The first advantage has pretty much disappeared, because a 4C, say, discharge rate of a NiCd cell is less than a 2C discharge rate of a NiMH cell of the same size. So even if the NiMH might not do as well at 4C as a NiCd at 4C, it usually does as well or better at the same actual current.
The second advantage allows the use of very simple chargers with NiCd cells, while NiMH cells require smarter chargers for long life. So I believe some currently produced battery powered items like vacuums, razors, and tools, still use NiCd because of the simplicity and low cost of the charger. I use NiCd to replace cells in these and older appliances when they fail.
Because of the ability to tolerate overcharge, I also use NiCd cells in conjunction with a solar panel. A solar panel is essentially a constant current source, so if the maximum panel output of the panel is 0.1C or less (e.g., 100 mA when using 1 Ah cells), the panel can be connected directly to the battery without any regulation at all or worry about damaging overcharge. Realistically, even NiCd cells don't like a constant 0.1C charge for extremely long times, but they can tolerate it a whole lot better than NiMH cells can.
Cadmium is toxic, so it's particularly important to recycle NiCd cells rather than dumping them into a landfill.
c_c