Hash functions are unique inputs that generates a unique output. Changing the input in the slightest way will result in a total different output.
It’s used during mining, it is part of the block hashing algorithm.
Meaning that you can’t have two of the same input giving the same output, and that hash functions are one way - you can’t figure out the input via the output.