It becomes tiring to click the next button 10 times to get navigate to a particular page where the said file or image exists. There are other related images that were probably uploaded at the same time. If we know the page number, we can just click the page number and get to the page quickly instead of having to click next so many times.