Hooks without commands?

So I’m sort of new to serverless, but from what I understand, hooks dictate what function to run at each step of each command. However, recently, I’ve been looking at some serverless implementations and it seems like in the constructor, people have hooks without defining any commands; is this a preference thing and the commands are auto-generated from the hooks, or am I just missing something?