What is the point of hashes when downloading over the same channel?

What is the point of providing shaXXX hashes for downloads of software over say TLS when any attacker that could change the download could have easily changed the hash? Isn’t there enough information in the download to know that it is corrupt? Just seems brain dead to me.