Hi Giorgi,
Thanks for reading! The idea behind that was to prevent a multiple tokens being minted with the same tokenURI. As far as I know, there is nothing stopping someone from minting multiple tokens on a single ERC721 contract with the same tokenURI. The only thing that is truly unique is the tokenID. So this allows us to ensure that there will only ever be one token mapped to one IPFS hash.