Spoiler-free
When you edit a RAW file, you aren’t making permanent changes to it. When you save your image, Photoshop creates a ‘sidecar’ file which stores all the Camera Raw settings, so next time you open that image the file makes sure everything is just the way you left it.