Image optimization directly impacts website loading speed by reducing the file size of images. Smaller image files take less time to download, resulting in a faster page load.