Why does the flight of a rocket to the ISS take up to 24 hours when the vehicle orbits only about 400 km above the Earth's surface?

This is roughly equivalent to the distance between Hamburg and Düsseldorf, which I can comfortably travel in 4 hours with a diesel train from main station to main station.