Then almost by magic everyone switched to micro USB. You could charge different devices from different manufacturers with the same cable. This wasn't some feat of magic, it was because the European Commission worked to bring manufacturers to an agreement on a common charging standard.
Well, everyone except Apple, who did actually sign the agreement. They just decided to bundle a dongle to be compliant.
Mini-USB was introduced in 2000, so manufactures had plenty of time to choose a common interface themselves, but decided not to.
Even amongst Apple's own devices it is a mess. To charge an Apple Pencil with an iPad Pro you need not one, but two adapters.