Google takes into account the page load speed for rankings. Hence, optimizing images will increase the speed of page loading and thus help in search engine rankings.