Apologies if you know all of this but just in case, Raw is not an image it is pure data. A Jpeg is an image but Raw is not it is just the data that has come from the camera sensor. The Data is in a format that is proprietary to the camera manufacturer (excluding Adobe DNG that is a published format), so each camera Raw data is different.
Now if you wanted to write a software program to display the raw data, you would first need to analyse the data, work out what everything meant then write routines that would convert the data into an image.
That's effectively what each software company does, of course there are some commonalities and certain standards but each company will write their own algorithms to display the data, This means that each software package will display an image slightly different to each other and that is why some people prefer one package over another for their own reasons.
When DT opens a raw file, it looks to find what camera and model was used to take the image, once it determined, it uses algorithms written by their own software team to convert the data into an image. These algorithms are based on sample images that people like yourself have sent to them for that camera model for them to analyse
If you edit an image you will find the history stack (left of the image) These are all the modules applied to the image, if you go to the foot of the history stack and select that point, it will show the base image as it thinks it should look, however there are 4 (from memory this is) modules by default that you cannot remove, these are the input colour profile, output colour profile, demosaic and black/white point, but if you click on these modules you can alter them.
On the older version (pre V3) there was also another module that is added by default called the tone curve, this is the fine tune of the image to make it look like DT thinks the camera would if you shot Jpeg without any special effects. This is the one you can amend for your own liking, than save it as a preset and have it automatically applied to you raw images.
It might take some learning to get to this point but once you are familiar with the software you can have the images looking just how you like them