Pre and Post Hooks is a mechanism to implicitly perform test dependent operations at different points of the test initialization and termination.
Even before your test starts you may need to create and initialize some common resources, connect to your setup etc.
At termination stage both normal and unexpected, you need to release application resources, lab equipment, or logout from communication interfaces.
As well, hooks are necessary for integration with 3rd party integration like HP QC.