Well both are not always available. In many countries, there is no hot water tank/line. There are only inline heaters or very small tanks locally where needed (each bathroom and kitchen sink). Then, you buy appliances such as dishwashers and clothes washers that also have inline heaters built-in (and you don't need to think about this, in such a region, this is the default thing that is sold).
It doesn't necessarily take longer to heat up, they are pretty much instant since they are designed to heat as needed locally as needed (don't need to heat a large volume of water) and they are at least as fast to provide hot water as a central hot water tank. They can be gas or electric powered depending on what is available/cheaper in the region and you never run out of hot water with an inline heater.
Even if you do have a central hot water tank, it's possible that heating water locally at the dishwasher is faster depending on distance to the tank. Anecdotally, I used to wait for hot water in the kitchen when I lived in Canada and I no longer do in Europe where I have no central hot water tank. In North America, recent high end home kitchens feature a local inline heater for hot water at the kitchen sink even though a central hot water tank exists.
Everyone in the uk has a central hot water heater, and nobody has a hot-water plumbed dishwasher. Presumably the 230V supply is enough to heat the water up quickly.
Do you also have hot water plumbed washing machines?
In the US, yes washing machines are generally connected to both hot and cold water. Unlike dishwashers which need to get even hotter than hot water, washing machines generally don't have any internal heating element at all.