How OpenSea works

Hey guys can anyone help me? I have a question, it may seem very silly to you but I don't really understand how opensea works behind the scenes. I am a beginner in this world.

I would like to know how opensea can change the address of the nft owner once the person sells his nft.

What functions of ERC721 do they use to do all this?

What are the steps they follow ?