Note that these images are made from many exposures that are then processed and combined, and the total exposure time is given. The individual exposure times were probably long, but I'm guessing on the order of minutes, not hours. (Actually, if you photograph stars with an exposure time that is too long, then you get star trails in the image.)