WordPress block editor hooks provide the same functionalities as PHP hooks. They are used to modify the behavior of the existing blocks.
You can check the WordPress documentation on this subject.
We didn't change anything here regarding the original documentation; we simply provided you with the structured file where you can write all your hooks.
Please follow this example to get more insights on using hooks in your project.