Checksums catch accidents
A checksum catches a truncated or corrupted file. It is not a security test, since a deliberate change can be made to match.
Hashes name content
A content hash is used as a name, so identical files share storage and any change gives a new name. That is how versions and caches work.