The network output matches the target curve but with a different scale

The two curves here are almost fully correlated with each other but they have different scales. So, my guess is the loss function you have used is somehow related to correlation. But correlation does not take care of the scale, so it explains why the scales of input and output are different.