This question already has an answer here:
I've seen several sites wehre they would put the hash of the downloadable file next to the file. Why do they do this ?
I understand the purpose of comparing the hash of your file with the online hash but if an attacker could change the downloading file he shouldn't have any problems for changing the site too or the hash on the site.
Doesn't make that the hash almost useless ?