When my camera is left on full auto that includes auto DRO (Dynamic Range Optimisation), which lifts the shadows a bit in the jpeg if the dynamic range in the image is too big for printing (it does more than that, but the details don't matter in this argument). I can also switch to in-camera manual control of DRO, or in-camera HDR processing from a few different exposures which are combined in camera. For static nightime scenes when a single handheld exposure at the low ISO I want would be too long for handheld I can switch to multiple exposure noise reduction, where it shoots and combines several short exposure images to produce a sharper cleaner image than would otherwise be possible handheld. It can also do handheld panorama pans and stitch the images together in the camera. That's all in-camera jpeg processing. Of course I could also not use these in-camera jpeg features and instead do the same thing in post-processing.
So if there's something special about ex-camera jpegs, what's the important difference between letting my camera produce these jpegs, or doing exactly the same thing from an ex-camera RAW file or files in post processing to get exactly the same end image?