A commit is a contract with the future: it lets you go back, branch, bisect, blame and audit, all keyed by a hash that never changes.
The hash is a promise of immutability. If someone gives you a1b2c3d, you can be sure that the content behind it has not changed — because if it had, the hash would be different. That single property enables git bisect (binary search for the commit that introduced a bug), git blame (who wrote this line), git log -S (when was this string introduced), and every reproducibility guarantee the ecosystem relies on.