"The Bitcoin nonce forms part of the block header, which is used by miners to provide entropy as part of the Proof of Work process, to try and find a hash meeting the difficulty requirement."
Quote taken from the following article.
https://blog.bitmex.com/the-mystery-of-the-bitcoin-nonce-pattern/