A good analogy is: git hooks are client-side validation; CI is server-side validation, aka the only validation you can trust.