You write five tests for the contacts page. Every one starts with the same two lines: log in, open the page. Copying them is tedious, and when the login flow changes you edit five places.
Hooks solve this. A hook is code that runs around your tests automatically.